Skip to content

Commit

Permalink
Merge pull request #149 from Ong-gi-Jong-gi/feat/auth
Browse files Browse the repository at this point in the history
[CHORE] 환경변수 사용 용법 수정
  • Loading branch information
SangWoo9734 authored Aug 25, 2024
2 parents 5d21bba + 5a68511 commit 0f56e4b
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,25 @@ import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 5173,
https:
process.env.VITE_MODE === 'production'
? {}
: {
key: fs.readFileSync(path.resolve('./cert', 'localhost-key.pem')),
cert: fs.readFileSync(path.resolve('./cert', 'localhost.pem')),
},
},
define: {
global: {},
},
build: {
chunkSizeWarningLimit: 1600,
},
export default defineConfig(({ mode }) => {
return {
plugins: [react()],
server: {
host: '0.0.0.0',
port: 5173,
https:
mode === 'production'
? {}
: {
key: fs.readFileSync(path.resolve('./cert', 'localhost-key.pem')),
cert: fs.readFileSync(path.resolve('./cert', 'localhost.pem')),
},
},
define: {
global: {},
},
build: {
chunkSizeWarningLimit: 1600,
},
};
});

0 comments on commit 0f56e4b

Please sign in to comment.