Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinold committed Aug 22, 2022
1 parent 942a40c commit 4d6b422
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
<script> if (global === undefined) { var global = window; } </script>
</head>
<body>
<div id="app"></div>
Expand Down
6 changes: 4 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()]
plugins: [vue()],
// per https://github.com/aws-amplify/amplify-js/issues/9639#issuecomment-1081781840
resolve: { alias: { './runtimeConfig': './runtimeConfig.browser' } }
})

0 comments on commit 4d6b422

Please sign in to comment.