nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.14k stars 628 forks source link

/_content API endpoint exposed on production environment #992

Open fogine opened 2 years ago

fogine commented 2 years ago

Version

@nuxt/content: 1.15.1 nuxt:

What is Expected?

This module should not expose json API on production or it should be configurable.

What is actually happening?

when nuxtjs project is build and started

export NODE_ENV=production
yarn build
yarn start

all content of content folder is exposed through <base-url>/_content we are running nuxt in SSR mode..

noeviricel commented 1 year ago

Hi ! I'm facing the same issue here !

@nuxt/content: v1.15.0 nuxt: v2.15.8

Nuxt is running in SSR mode as well.