diff --git a/.github/workflows/azure-static-web-apps-happy-beach-0376b6203.yml b/.github/workflows/azure-static-web-apps-happy-beach-0376b6203.yml index 6c473ac..1e46af5 100644 --- a/.github/workflows/azure-static-web-apps-happy-beach-0376b6203.yml +++ b/.github/workflows/azure-static-web-apps-happy-beach-0376b6203.yml @@ -33,7 +33,7 @@ jobs: app_location: "handlenett-frontend/" # App source code path api_location: "handlenett-frontend/.output/server" # Api source code path - optional output_location: ".output/public" # Built app content directory - optional -- For most projects, the output_location is relative to the app_location. - app_build_command: 'npx nuxi build --preset azure' + app_build_command: 'npx nuxi build --dotenv .env.production --preset azure' ###### End of Repository/Build Configurations ###### close_pull_request_job: diff --git a/handlenett-frontend/.env.production b/handlenett-frontend/.env.production new file mode 100644 index 0000000..27861df --- /dev/null +++ b/handlenett-frontend/.env.production @@ -0,0 +1,5 @@ +VITE_CLIENT_ID=6409e25f-f9b7-4b70-a84c-6c077440d740 +VITE_REDIRECT_URI=https://happy-beach-0376b6203.5.azurestaticapps.net/ +VITE_SCOPE=api://6409e25f-f9b7-4b70-a84c-6c077440d740/access_as_user +VITE_AUTHORITY=https://login.microsoftonline.com/7534ab3e-6d52-4213-8493-1d674b529724 +VITE_BASE_URL=https://handlenett-api.ashysand-d05f316c.norwayeast.azurecontainerapps.io/ \ No newline at end of file diff --git a/handlenett-frontend/.gitignore b/handlenett-frontend/.gitignore index 4a7f73a..e22c8ea 100644 --- a/handlenett-frontend/.gitignore +++ b/handlenett-frontend/.gitignore @@ -20,5 +20,5 @@ logs # Local env files .env -.env.* +!.env.production !.env.example