diff --git a/.env b/.env index e77ce0e..3c23628 100644 --- a/.env +++ b/.env @@ -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= diff --git a/.env.prod_staging b/.env.prod_staging index 4542e30..65f02bc 100644 --- a/.env.prod_staging +++ b/.env.prod_staging @@ -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 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..65f02bc --- /dev/null +++ b/.env.production @@ -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 \ No newline at end of file diff --git a/next.config.js b/next.config.js index 2506e22..2bc690b 100644 --- a/next.config.js +++ b/next.config.js @@ -16,8 +16,8 @@ module.exports = { }, webpack(config, { isServer }) { - config.optimization.minimize = false; - productionBrowserSourceMaps: true, + config.optimization.minimize = true, + productionBrowserSourceMaps = true, config.resolve.fallback = {