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 }}
|
||||
run: |
|
||||
cd atmosphere/
|
||||
echo "VITE_GOOGLE_MAP_API_KEY=${{ secrets.VITE_GOOGLE_MAP_API_KEY }}" > .env.production
|
||||
npm run build
|
||||
|
||||
- name: Deploy
|
||||
|
||||
@@ -4,5 +4,8 @@ import react from '@vitejs/plugin-react'
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: '/',
|
||||
define: {
|
||||
'import.meta.env.VITE_GOOGLE_MAP_API_KEY': JSON.stringify(process.env.VITE_GOOGLE_MAP_API_KEY)
|
||||
}
|
||||
//base: '/pkg/atmosphere/',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user