Skip to content

Commit

Permalink
Yeah also the ENVs aren't actually available in GitHub workflow build
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-buffard committed Aug 17, 2024
1 parent 3f62194 commit 1506fb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:

- name: Build and push web
uses: docker/build-push-action@v5.3.0
env:
NEXT_PUBLIC_ADMIN_BASE_URI: ${{secrets.NEXT_PUBLIC_ADMIN_BASE_URI}}
with:
context: ./web
file: ./web/Dockerfile
Expand Down
1 change: 1 addition & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN npm install
COPY . .

ENV NEXT_PUBLIC_API=http://beta.g-yachts.com
ENV NEXT_PUBLIC_ADMIN_BASE_URI=${NEXT_PUBLIC_ADMIN_BASE_URI}

RUN npm run build

Expand Down
2 changes: 1 addition & 1 deletion web/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next-sitemap').IConfig} */

module.exports = {
siteUrl: process.env.NEXT_PUBLIC_ADMIN_BASE_URI || "https://www.g-yachts.com",
siteUrl: process.env.NEXT_PUBLIC_ADMIN_BASE_URI | "https://www.g-yachts.com",
generateRobotsTxt: true,
sitemapSize: 5000,
robotsTxtOptions: {
Expand Down

0 comments on commit 1506fb1

Please sign in to comment.