test production

This commit is contained in:
Dobromir Popov
2024-02-24 18:06:09 +02:00
parent 4f631caef0
commit 9baea7c8b7
4 changed files with 13 additions and 7 deletions

5
.env
View File

@ -14,13 +14,8 @@ NEXTAUTH_SECRET=ed8a9681efc414df89dfd03cd188ed58
DATABASE_PROVIDER=mysql
# DATABASE_URL=mysql://cart:cart2023@192.168.0.10:3306/cart_dev
DATABASE_URL=mysql://root:Zelen0ku4e@192.168.0.10:3306/cart_dev
# DATABASE_URL=mysql://cart:cartpw@20.101.62.76:3307/cart
# sqlite
# DATABASE_PROVIDER=sqlite
# DATABASE_URL=file:./prisma/local.db
APPLE_ID=
APPLE_TEAM_ID=
APPLE_PRIVATE_KEY=

View File

@ -3,6 +3,7 @@ NEXT_PUBLIC_PORT=
NEXT_PUBLIC_HOST=staging.mwhitnessing.com
NEXTAUTH_URL= https://staging.mwhitnessing.com
# Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32
NEXTAUTH_SECRET=1dd8a5457970d1dda50600be28e935ecc4513ff27c49c431849e6746f158d638
# ? do we need to duplicate this? already defined in the deoployment yml file

10
.env.production Normal file
View File

@ -0,0 +1,10 @@
NEXT_PUBLIC_PROTOCOL=https
NEXT_PUBLIC_PORT=
NEXT_PUBLIC_HOST=staging.mwhitnessing.com
NEXTAUTH_URL= https://staging.mwhitnessing.com
# Linux: `openssl rand -hex 32` or go to https://generate-secret.now.sh/32
NEXTAUTH_SECRET=1dd8a5457970d1dda50600be28e935ecc4513ff27c49c431849e6746f158d638
# ? do we need to duplicate this? already defined in the deoployment yml file
DATABASE_URL=mysql://jwpwsofia:dwxhns9p9vp248V39xJyRthUsZ2gR9@mariadb-staging:3306/jwpwsofia

View File

@ -16,8 +16,8 @@ module.exports = {
},
webpack(config, { isServer }) {
config.optimization.minimize = false;
productionBrowserSourceMaps: true,
config.optimization.minimize = true,
productionBrowserSourceMaps = true,
config.resolve.fallback = {