Skip to content

Commit

Permalink
change entrypoint for nuxt applications (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys authored Mar 26, 2024
1 parent 0f462ff commit 7e12e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,9 @@ export class GDF {

if (this.adonisjs) {
return ['node', '/app/build/server.js']
}

if (this.gatsby) {
} else if (this.nuxtjs) {
return ['node', '.output/server/index.mjs']
} else if (this.gatsby) {
return [this.npx, 'gatsby', 'serve', '-H', '0.0.0.0']
} else if (this.vite || this.astroStatic) {
return ['/usr/sbin/nginx', '-g', 'daemon off;']
Expand Down
2 changes: 1 addition & 1 deletion test/frameworks/nuxt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ COPY --from=build /app /app
# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
ENV HOST=0
CMD [ "yarn", "run", "start" ]
CMD [ "node", ".output/server/index.mjs" ]

0 comments on commit 7e12e6e

Please sign in to comment.