Skip to content

Commit

Permalink
add ssl cert plugin for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
annybs committed Jun 9, 2023
1 parent 34bcf6a commit 6d8888d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@metamask/detect-provider": "^1.2.0",
"@metamask/onboarding": "^1.0.0",
"@rollup/plugin-inject": "^5.0.3",
"@vitejs/plugin-basic-ssl": "^1.0.1",
"@vitejs/plugin-vue": "^4.2.3",
"@vuelidate/core": "^2.0.0-alpha.16",
"@vuelidate/validators": "^2.0.0-alpha.13",
Expand Down
7 changes: 6 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
import { defineConfig } from 'vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import basicSsl from '@vitejs/plugin-basic-ssl'
import vue from '@vitejs/plugin-vue'
import { URL, fileURLToPath } from 'node:url'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
nodePolyfills()
basicSsl()
// nodePolyfills()
],
server: {
https: true
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
Expand Down

0 comments on commit 6d8888d

Please sign in to comment.