Skip to content

Commit

Permalink
Merge pull request #1804 from BaseAdresseNationale/feat/adresse-v2-step2
Browse files Browse the repository at this point in the history
Feat/adresse v2 step2
  • Loading branch information
nkokla authored Sep 2, 2024
2 parents c16e23d + 830982a commit 4589130
Show file tree
Hide file tree
Showing 35 changed files with 2,565 additions and 161 deletions.
13 changes: 11 additions & 2 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SESSION_SECRET=
# Params pour la partie Blog
NEXT_PUBLIC_GHOST_URL=https://ghost.adresse.data.gouv.fr
NEXT_PUBLIC_GHOST_URL_IMAGES_SOURCE=ghost.adresse.data.gouv.fr
GHOST_KEY=
NEXT_PUBLIC_GHOST_KEY=

# Definition URL pour accès aux sites BAL

Expand Down Expand Up @@ -62,4 +62,13 @@ S3_CONFIG_ENDPOINT=

# Connexion au Dossier Data local (en cas de rollback - TOGGLER_DATA_SOURCES=local sinon TOGGLER_DATA_SOURCES=S3)
NEXT_PUBLIC_TOGGLER_DATA_SOURCES=S3
NEXT_PUBLIC_PATH_STATIC_FILE=
NEXT_PUBLIC_PATH_STATIC_FILE=

# -------------------------------
# --- URL des réseaux sociaux ---
# -------------------------------

NEXT_PUBLIC_SOCIAL_NETWORKS_URL_XCOM=https://x.com/adressedatagouv
NEXT_PUBLIC_SOCIAL_NETWORKS_URL_FACEBOOK=https://www.facebook.com/BasesAdressesLocales
NEXT_PUBLIC_SOCIAL_NETWORKS_URL_LINKEDIN=https://www.linkedin.com/company/base-adresse-nationale/
NEXT_PUBLIC_SOCIAL_NETWORKS_URL_GITHUB=https://github.com/BaseAdresseNationale
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ env:
NEXT_PUBLIC_API_BAN_URL: ${{ vars.NEXT_PUBLIC_API_BAN_URL }}
NEXT_PUBLIC_BAL_ADMIN_API_URL: ${{ vars.NEXT_PUBLIC_BAL_ADMIN_API_URL }}
NEXT_PUBLIC_API_GEO_URL: ${{ vars.NEXT_PUBLIC_API_GEO_URL }}
NEXT_PUBLIC_ADRESSE_URL: ${{ vars.NEXT_PUBLIC_ADRESSE_URL }}

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
node-version: [20.x, 22.6]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -28,4 +29,4 @@ jobs:
- name: Lint the codebase
run: npm run lint
- name: Build
run: npm run build
run: npm run build
15 changes: 15 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
/** @type {import('next').NextConfig} */

const NEXT_PUBLIC_GHOST_URL_IMAGES_SOURCE = process.env.NEXT_PUBLIC_GHOST_URL_IMAGES_SOURCE
const imagesDomains = ['static.data.gouv.fr']
if (NEXT_PUBLIC_GHOST_URL_IMAGES_SOURCE) {
imagesDomains.push(NEXT_PUBLIC_GHOST_URL_IMAGES_SOURCE)
}

const nextConfig = {
images: {
remotePatterns: imagesDomains.map(domain => ({
protocol: 'https',
hostname: domain,
port: '',
pathname: '/**',
})),
},
webpack: (config) => {
config.module.rules.push({
test: /\.woff2$/,
Expand Down
Loading

0 comments on commit 4589130

Please sign in to comment.