diff --git a/.deploy/service.json b/.deploy/service.json new file mode 100644 index 0000000..dca1f4f --- /dev/null +++ b/.deploy/service.json @@ -0,0 +1,24 @@ +{ + "type": "rolling", + "targetPlatform": "REPLACE_IN_PIPELINE", + "applicationData": { + "artifactUrl": "REPLACE_IN_PIPELINE", + "version": "REPLACE_IN_PIPELINE" + }, + "runtime": { + "type": "REPLACE_IN_PIPELINE", + "nodejsVersion": "REPLACE_IN_PIPELINE" + }, + "profiles": [ + { "name": "loadBalancer", "healthCheckPath": "REPLACE_IN_PIPELINE" }, + { "name": "healthcheck", "interval": "REPLACE_IN_PIPELINE" }, + { + "name": "environmentVariables", + "variables": { + "APP_ID": "REPLACE_IN_PIPELINE", + "APP_VERSION": "REPLACE_IN_PIPELINE", + "NODE_ENV": "REPLACE_IN_PIPELINE" + } + } + ] +} diff --git a/.env b/.env deleted file mode 100644 index 126b165..0000000 --- a/.env +++ /dev/null @@ -1,2 +0,0 @@ -# Service. -VITE_SERVICE_NAME=replace-me diff --git a/.env/.env b/.env/.env new file mode 100644 index 0000000..ced01e3 --- /dev/null +++ b/.env/.env @@ -0,0 +1,12 @@ +# 📝 Shared Variables 📝 +# These variables are always loaded and shared by all modes. +# +# The final value of a variable depends on the priority of where it's being set: +# 1. Deployment pipeline. +# 2. Dedicated mode (.env.{development/staging/production}). +# 3. Shared mode (.env). +# +# 🚫 DO NOT PUT SECRETS HERE 🚫 + +# Service. +VITE_SERVICE_NAME=replace-me diff --git a/.env/.env.development b/.env/.env.development new file mode 100644 index 0000000..c19d5bc --- /dev/null +++ b/.env/.env.development @@ -0,0 +1,9 @@ +# 📝 Development Variables 📝 +# These variables are only loaded in the development mode. +# +# The final value of a variable depends on the priority of where it's being set: +# 1. Deployment pipeline. +# 2. Dedicated mode (.env.development). +# 3. Shared mode (.env). +# +# 🚫 DO NOT PUT SECRETS HERE 🚫 diff --git a/.env/.env.production b/.env/.env.production new file mode 100644 index 0000000..5899bd7 --- /dev/null +++ b/.env/.env.production @@ -0,0 +1,9 @@ +# 📝 Production Variables 📝 +# These variables are only loaded in the production mode. +# +# The final value of a variable depends on the priority of where it's being set: +# 1. Deployment pipeline. +# 2. Dedicated mode (.env.production). +# 3. Shared mode (.env). +# +# 🚫 DO NOT PUT SECRETS HERE 🚫 diff --git a/.env/.env.staging b/.env/.env.staging new file mode 100644 index 0000000..32bf9eb --- /dev/null +++ b/.env/.env.staging @@ -0,0 +1,9 @@ +# 📝 Staging Variables 📝 +# These variables are only loaded in the staging mode. +# +# The final value of a variable depends on the priority of where it's being set: +# 1. Deployment pipeline. +# 2. Dedicated mode (.env.staging). +# 3. Shared mode (.env). +# +# 🚫 DO NOT PUT SECRETS HERE 🚫 diff --git a/.gcloudignore b/.gcloudignore deleted file mode 100644 index 8fb98f4..0000000 --- a/.gcloudignore +++ /dev/null @@ -1,17 +0,0 @@ -/src -/.github -/.vscode -/node_modules -/.devcontainer.json -/.eslintrc.json -/.gitignore -/.prettierignore -/.prettierrc.json -/codecov.yml -/*.code-* -/*.md -/scripts -/tsconfig.json -/tsconfig.node.json -/vite.config.ts -/index.html diff --git a/app.yaml b/app.yaml deleted file mode 100644 index 6dfb7cc..0000000 --- a/app.yaml +++ /dev/null @@ -1,9 +0,0 @@ -runtime: REPLACE_IN_PIPELINE -instance_class: F1 -service: REPLACE_IN_PIPELINE - -inbound_services: - - warmup - -build_env_variables: - GOOGLE_NODE_RUN_SCRIPTS: '' # https://cloud.google.com/appengine/docs/standard/nodejs/runtime#npm_build_script diff --git a/index.html b/index.html index b5fae3d..27346e1 100644 --- a/index.html +++ b/index.html @@ -4,11 +4,11 @@ -