Skip to content

Commit

Permalink
env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
neila committed Nov 1, 2024
1 parent eba3b84 commit 75bea94
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
if: steps.build-cache.outputs.cache-hit != 'true'
run: yarn turbo build
env:
NEXT_PUBLIC_AIRTABLE_API_KEY: ${{ vars.NEXT_PUBLIC_AIRTABLE_API_KEY }}
NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM: ${{ vars.NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM }}
NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM: ${{ vars.NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM }}
NEXT_PUBLIC_AIRTABLE_API_KEY: ${{ secrets.NEXT_PUBLIC_AIRTABLE_API_KEY }}
NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM: ${{ secrets.NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM }}
NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM: ${{ secrets.NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
run: yarn build-static
env:
NODE_ENV: production
NEXT_PUBLIC_AIRTABLE_API_KEY: ${{ vars.NEXT_PUBLIC_AIRTABLE_API_KEY }}
NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM: ${{ vars.NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM }}
NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM: ${{ vars.NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM }}
NEXT_PUBLIC_AIRTABLE_API_KEY: ${{ secrets.NEXT_PUBLIC_AIRTABLE_API_KEY }}
NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM: ${{ secrets.NEXT_PUBLIC_AIRTABLE_BASE_INQUIRYFORM }}
NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM: ${{ secrets.NEXT_PUBLIC_AIRTABLE_TABLE_INQUIRYFORM }}

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
7 changes: 1 addition & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const nextConfig = {
reactStrictMode: true,
basePath: process.env.NODE_ENV === "production" ? "/archived_site" : "",
basePath: process.env.NODE_ENV === "production" ? "/website" : "",
// i18n: { locales: ['en', 'ja'], defaultLocale: 'en', localeDetection: false },
compiler: {
emotion: true,
Expand All @@ -14,11 +14,6 @@ const nextConfig = {
destination: "https://www.ethtokyo.com",
permanent: true,
},
// {
// source: "/*",
// destination: "https://www.ethtokyo.com/",
// permanent: true,
// },
];
},
};
Expand Down

0 comments on commit 75bea94

Please sign in to comment.