Skip to content
Discussion options

You must be logged in to vote

Hey, thanks for the kind words - and I really respect your persistence!
I just took a look at your Actions history, and yeah, I can see you’ve been testing different configs (which is great).

About NODE_ENV, yeah - it needs to be set inside the same run: block where you call the build command.
For example:

- name: Build project
  run: |
    NODE_ENV=production npm run generate

This way it only applies during the build process.
Setting it as a separate step like - name: Set env won’t have the same effect unless you export it in the shell or use env: correctly.
Also just a heads-up: since you're using nuxt generate, make sure your nuxt.config.ts has the right deployment target:

export default 

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Eltymus
Comment options

Comment options

You must be logged in to vote
2 replies
@Eltymus
Comment options

@zainali0303
Comment options

Comment options

You must be logged in to vote
1 reply
@Eltymus
Comment options

Answer selected by Eltymus
Comment options

You must be logged in to vote
0 replies

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug GitHub or a GitHub feature is not working as intended Pages Host a static website, right from your repo
4 participants