Skip to content

Commit

Permalink
Merge pull request #1 from deriv-com/ako/fix-build
Browse files Browse the repository at this point in the history
Ako/ remove cert file in vite conf
  • Loading branch information
sandeep-deriv authored May 8, 2024
2 parents 96ff6f4 + c389188 commit 695bac6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import fs from 'fs';
import path from 'path';
import { defineConfig } from 'vite';
import svgr from 'vite-plugin-svgr';

Expand All @@ -8,13 +6,7 @@ import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr()],

server: {
https: {
// TODO: replace with your own certificate
key: fs.readFileSync(path.resolve(__dirname, './key.pem')),
cert: fs.readFileSync(path.resolve(__dirname, './cert.pem')),
},
port: 8443,
},
});

0 comments on commit 695bac6

Please sign in to comment.