Skip to content

Commit

Permalink
SSL for playground using vite mkcert
Browse files Browse the repository at this point in the history
  • Loading branch information
Wade Penistone committed Nov 26, 2023
1 parent eb693c0 commit a524d40
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"vite": "^4.5.0",
"vite-plugin-banner": "^0.7.1",
"vite-plugin-dts": "^3.6.3",
"vite-plugin-mkcert": "^1.17.1",
"vitepress": "1.0.0-rc.25",
"vue-tsc": "^1.8.22"
}
Expand Down
3 changes: 3 additions & 0 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { resolve } from 'pathe'
import UnoCSS from 'unocss/vite'
import { templateCompilerOptions } from '@tresjs/core'
import { qrcode } from 'vite-plugin-qrcode'
import mkcert from 'vite-plugin-mkcert'

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -27,11 +28,13 @@ export default defineConfig({
/* options */
}),
qrcode(),
mkcert()
],
resolve: {
alias: {
'@tresjs/xr': resolve(__dirname, '../src/'),
},
dedupe: ['three', '@tresjs/core'],
},
server: { https: true }, // TODO: Remove when upgraded to Vite 5+
})
65 changes: 65 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit a524d40

Please sign in to comment.