Skip to content

Commit

Permalink
Fix types for vite dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
bebeal committed Sep 28, 2024
1 parent 15045cc commit 0a824fa
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 88 deletions.
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import api from './api/api.js';
const __dirname: string = path.dirname(fileURLToPath(import.meta.url));
const PORT = parseFloat(process.env.PORT || '5137');

export const createServer = async (root = process.cwd(), env = process.env.NODE_ENV) => {
export const createServer = async (root = process.cwd(), env = process.env.NODE_ENV): Promise<{ expressServer: express.Express; viteServer: ViteDevServer | null }> => {
const isProd = env === 'production';
const isTest = process.env.VITEST;

Expand Down
Loading

0 comments on commit 0a824fa

Please sign in to comment.