You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I am building my nuxt3 application without SSR (via setting ssr: false in nuxt.config.ts).
Up until the upgrade from nuxt3 RC11 to RC12 there was an index.html file located in .output/public after building the application using nuxt build and I was able to deploy the generated SPA Application via AWS Amplify as example using the following config:
version: 1
backend:
phases:
build:
commands:
- '# Execute Amplify CLI with the helper script'
- amplifyPush --simple
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- npm run build
artifacts:
# IMPORTANT - Please verify your build output directory
baseDirectory: /.output/public
files:
- '**/*'
cache:
paths:
- node_modules/**/*
Describe the bug
after building locally i noticed that the file .output/public/index.html was missing after upgrading from RC11 to RC12. Now with the index.html file missing, Its is not possible anymore to host a SPA without prerendered routes.
Please correct me if I missunderstood something there ✌️.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
@danielroe thanks for your response. Yes I was running nuxt build to generate the .output folder. (added it in the issue description) When I'm running nuxt generate every route is generated statically for a prerendered SPA. Isn't it possible anymore to just generate a "classic" not prerendered SPA with one single index.html file? I think in nuxt2 the command was nuxt build --spa .
according to the current nuxt3 docs for nuxi generateThe command triggers the nuxi build command with the prerender argument set to true (https://v3.nuxtjs.org/api/commands/generate#nuxi-generate)
I'm having the same issue, using "npm run build" with "ssr: false" is not generating any html files but "npm run generate" with "ssr: false" is prerendering all the routes.
Environment
Linux
v16.18.0
3.0.0-rc.12
0.6.0
npm@8.19.2
vite
ssr
,modules
,buildModules
,build
,css
,head
,pwa
,runtimeConfig
@nuxtjs/tailwindcss@5.3.5
,@vueuse/nuxt@9.4.0
,@kevinmarrec/nuxt-pwa@0.8.0
@pinia/nuxt@0.4.3
Reproduction
Currently I am building my nuxt3 application without SSR (via setting
ssr: false
innuxt.config.ts
).Up until the upgrade from nuxt3 RC11 to RC12 there was an index.html file located in .output/public after building the application using
nuxt build
and I was able to deploy the generated SPA Application via AWS Amplify as example using the following config:Describe the bug
after building locally i noticed that the file .output/public/index.html was missing after upgrading from RC11 to RC12. Now with the index.html file missing, Its is not possible anymore to host a SPA without prerendered routes.
Please correct me if I missunderstood something there ✌️.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: