Skip to content

Commit

Permalink
Merge pull request #1835 from BaseAdresseNationale/feat/adresse-v2-do…
Browse files Browse the repository at this point in the history
…wnload-data-pages

Feat : [adresse v2] download data pages and S3 connect
  • Loading branch information
jbouhadoun authored Oct 2, 2024
2 parents 955a7c5 + e9bd812 commit dba5f95
Show file tree
Hide file tree
Showing 35 changed files with 3,231 additions and 204 deletions.
9 changes: 5 additions & 4 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ NEXT_PUBLIC_BAL_WIDGET_URL=https://baseadressenationale.github.io/bal-widget
NEXT_PUBLIC_CLIENT_GUICHET_ADRESSE=
NEXT_PUBLIC_CLIENT_MES_ADRESSE=
NEXT_PUBLIC_CLIENT_FORMULAIRE_PUBLICATION=
NEXT_PUBLIC_DATAGOUV_URL=https://www.data.gouv.fr/api/1

# -----------------------------------------
# --- Utilisation Matomo pour les stats ---
Expand All @@ -56,10 +57,10 @@ NEXT_PUBLIC_CERTIFICAT_NUMEROTATION_ENABLED=
# --- Connexion au S3 pour les datas ---
# --------------------------------------

S3_CONFIG_ACCESS_KEY_ID=
S3_CONFIG_SECRET_ACCESS_KEY=
S3_CONFIG_REGION=
S3_CONFIG_ENDPOINT=
S3_CONFIG_ACCESS_KEY_ID=xxxx
S3_CONFIG_SECRET_ACCESS_KEY=xxxx
S3_CONFIG_REGION=xxxx
S3_CONFIG_ENDPOINT=xxxx

# Connexion au Dossier Data local (en cas de rollback - TOGGLER_DATA_SOURCES=local sinon TOGGLER_DATA_SOURCES=S3)
NEXT_PUBLIC_TOGGLER_DATA_SOURCES=S3
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ env:
NEXT_PUBLIC_API_DEPOT_URL: ${{ vars.NEXT_PUBLIC_API_DEPOT_URL }}
NEXT_PUBLIC_API_ETABLISSEMENTS_PUBLIC: ${{ vars.NEXT_PUBLIC_API_ETABLISSEMENTS_PUBLIC }}
NEXT_PUBLIC_BAL_API_URL: ${{ vars.NEXT_PUBLIC_BAL_API_URL }}
S3_CONFIG_ACCESS_KEY_ID: ${{ secrets.S3_CONFIG_ACCESS_KEY_ID }}
S3_CONFIG_SECRET_ACCESS_KEY: ${{ secrets.S3_CONFIG_SECRET_ACCESS_KEY }}
S3_CONFIG_REGION: ${{ secrets.S3_CONFIG_REGION }}
S3_CONFIG_ENDPOINT: ${{ secrets.S3_CONFIG_ENDPOINT }}

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ services:
- S3_CONFIG_REGION=${S3_CONFIG_REGION}
- S3_CONFIG_ENDPOINT=${S3_CONFIG_ENDPOINT}
- NEXT_LAST_UPDATED_DATE_ADDOCK_URL=${NEXT_LAST_UPDATED_DATE_ADDOCK_URL}
- NEXT_PUBLIC_DATAGOUV_URL=${NEXT_PUBLIC_DATAGOUV_URL}

3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const nextConfig = {
},
instrumentationHook: true,
},
transpilePackages: [
'@codegouvfr/react-dsfr', // Require for the "pages-router" of nextJS
],
}

export default nextConfig
Loading

0 comments on commit dba5f95

Please sign in to comment.