1
0
This commit is contained in:
2025-11-21 15:33:55 +09:00
parent 595466a3fe
commit c2e2c51efd
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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/',
})