Skip to content

Commit

Permalink
Fixing env variables for production
Browse files Browse the repository at this point in the history
  • Loading branch information
guillecro committed Dec 13, 2024
1 parent 1b6a3c9 commit 0ea1176
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#NODE_ENV=production
#NUXT_PUBLIC_API_URL=http://localhost:3000
#NUXT_AUTH_BASE_URL=http://localhost:3000/
#AUTH_ORIGIN=http://localhost:4000
#NITRO_PORT=4000
6 changes: 2 additions & 4 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# NUXT_PUBLIC_API_URL=http://localhost:3000
NUXT_AUTH_BASE_URL=http://localhost:3000/
# AUTH_ORIGIN=http://localhost:4000
# NITRO_PORT=4000
NODE_ENV=production
NUXT_AUTH_BASE_URL=https://api.incidirparaexistir.democraciaenred.org/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build",
"build": "nuxt build --dotenv .env.production",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
Expand Down

0 comments on commit 0ea1176

Please sign in to comment.