fix key
This commit is contained in:
1
.github/workflows/gh-pages.yml
vendored
1
.github/workflows/gh-pages.yml
vendored
@@ -27,6 +27,7 @@ jobs:
|
|||||||
VITE_GOOGLE_MAP_API_KEY: ${{ secrets.VITE_GOOGLE_MAP_API_KEY }}
|
VITE_GOOGLE_MAP_API_KEY: ${{ secrets.VITE_GOOGLE_MAP_API_KEY }}
|
||||||
run: |
|
run: |
|
||||||
cd atmosphere/
|
cd atmosphere/
|
||||||
|
echo "VITE_GOOGLE_MAP_API_KEY=${{ secrets.VITE_GOOGLE_MAP_API_KEY }}" > .env.production
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
|||||||
@@ -4,5 +4,8 @@ import react from '@vitejs/plugin-react'
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
base: '/',
|
base: '/',
|
||||||
|
define: {
|
||||||
|
'import.meta.env.VITE_GOOGLE_MAP_API_KEY': JSON.stringify(process.env.VITE_GOOGLE_MAP_API_KEY)
|
||||||
|
}
|
||||||
//base: '/pkg/atmosphere/',
|
//base: '/pkg/atmosphere/',
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user