Skip to content

Commit

Permalink
Rename preprod to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 22, 2024
1 parent 7ec6a3e commit a04d729
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VITE_OPEN_PRICES_ENV = "local"
VITE_OPEN_PRICES_APP_URL = "http://127.0.0.1:8000"
VITE_OPEN_PRICES_API_URL = "http://127.0.0.1:8000/api/v1"
VITE_MANIFEST_PATH = "/manifest.local.json"
Expand Down
1 change: 1 addition & 0 deletions .env.prod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VITE_OPEN_PRICES_ENV = "prod"
VITE_OPEN_PRICES_APP_URL = "https://prices.openfoodfacts.org"
VITE_OPEN_PRICES_API_URL = "https://prices.openfoodfacts.org/api/v1"
VITE_MANIFEST_PATH = "/manifest.prod.json"
Expand Down
3 changes: 2 additions & 1 deletion .env.preprod → .env.staging
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
VITE_OPEN_PRICES_ENV = "staging"
VITE_OPEN_PRICES_APP_URL = "https://prices.openfoodfacts.net"
VITE_OPEN_PRICES_API_URL = "https://prices.openfoodfacts.net/api/v1"
VITE_MANIFEST_PATH = "/manifest.preprod.json"
VITE_MANIFEST_PATH = "/manifest.staging.json"
VITE_DEFAULT_LOCALE = en
VITE_FALLBACK_LOCALE = en
VITE_DEFAULT_COUNTRY = FR
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"build-staging": "vite build --mode preprod",
"build-staging": "vite build --mode staging",
"build-prod": "vite build --mode prod",
"preview": "vite preview",
"lint": "eslint",
Expand Down
4 changes: 2 additions & 2 deletions public/manifest.preprod.json → public/manifest.staging.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Open Prices (Preprod)",
"short_name": "OpenPrices (Preprod)",
"name": "Open Prices (Staging)",
"short_name": "OpenPrices (Staging)",
"description": "An open crowdsourced database of prices",
"icons": [
{
Expand Down
10 changes: 5 additions & 5 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ const LOCATION_TYPE_ONLINE_ICON = 'mdi-web'

export default {
APP_NAME: 'Open Prices',
APP_URL: 'https://prices.openfoodfacts.org',
APP_API_URL: 'https://prices.openfoodfacts.org/api/docs',
APP_URL: import.meta.env.VITE_OPEN_PRICES_APP_URL,
APP_API_URL: `${import.meta.env.VITE_OPEN_PRICES_APP_URL}/api/docs`,
APP_USER_AGENT: 'Open Prices Web App',
APP_DUMP_PRICES_URL: 'https://prices.openfoodfacts.org/data/prices.jsonl.gz',
APP_DUMP_PROOFS_URL: 'https://prices.openfoodfacts.org/data/proofs.jsonl.gz',
APP_DUMP_LOCATIONS_URL: 'https://prices.openfoodfacts.org/data/locations.jsonl.gz',
APP_DUMP_PRICES_URL: `${import.meta.env.VITE_OPEN_PRICES_APP_URL}/data/prices.jsonl.gz`,
APP_DUMP_PROOFS_URL: `${import.meta.env.VITE_OPEN_PRICES_APP_URL}/data/proofs.jsonl.gz`,
APP_DUMP_LOCATIONS_URL: `${import.meta.env.VITE_OPEN_PRICES_APP_URL}/data/locations.jsonl.gz`,
APP_GITHUB_FRONTEND_URL: 'https://github.com/openfoodfacts/open-prices-frontend',
OFF_NAME: OFF_NAME,
OFF_URL: 'https://world.openfoodfacts.org',
Expand Down

0 comments on commit a04d729

Please sign in to comment.