nuxt / content

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

Can't find it on the first visit, just redirect to the link? #2563

Closed bbhxwl closed 7 months ago

bbhxwl commented 7 months ago

Environment

{ "name": "nuxt-app", "private": true, "type": "module", "scripts": { "build": "nuxt build", "dev": "nuxt dev", "generate": "nuxt generate", "preview": "nuxt preview", "postinstall": "nuxt prepare" }, "devDependencies": { "@ant-design-vue/nuxt": "^1.4.1", "@formkit/auto-animate": "^0.8.1", "@nuxtjs/color-mode": "^3.3.2", "@nuxtjs/device": "^3.1.1", "@nuxtjs/tailwindcss": "^6.11.2", "@pinia-plugin-persistedstate/nuxt": "^1.2.0", "@pinia/nuxt": "^0.5.1", "@tweenjs/tween.js": "^23.1.1", "@types/three": "^0.161.2", "ant-design-vue": "^4.1.2", "dayjs-nuxt": "^2.1.9", "element-plus": "^2.5.3", "jwt-decode": "^4.0.0", "mqtt": "^5.3.5", "nuxt": "^3.10.2", "pinia": "^2.1.7", "vue": "^3.4.14", "vue-router": "^4.2.5" }, "dependencies": { "@element-plus/nuxt": "^1.0.7", "@nuxt/content": "^2.12.0", "@nuxt/ui-pro": "^0.7.5", "cheerio": "^1.0.0-rc.12", "three": "^0.161.0" } }

Reproduction

image image image

Describe the bug

I directly accessed the/test path and was prompted that I couldn't find the doc, but I redirected to the/test path through index. vue and was able to display the index. md document normally. Why? This only happens on the server. There is no problem with the dev mode.

Additional context

No response

Logs

No response

bbhxwl commented 7 months ago

It turns out that there will be bugs when running Node16, and it will not support server-side rendering.