Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bbhxwl opened this issue Feb 15, 2024 · 1 comment
Closed

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

bbhxwl opened this issue Feb 15, 2024 · 1 comment

Comments

@bbhxwl
Copy link

bbhxwl commented Feb 15, 2024

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
Copy link
Author

bbhxwl commented Feb 16, 2024

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

@bbhxwl bbhxwl closed this as completed Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant