Skip to content

Commit

Permalink
FIX: vite.config needs to be in root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed May 14, 2024
1 parent dd90ced commit b5403e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"allowSyntheticDefaultImports": true
},
"include": [
"config/vite.config.ts",
"vite.config.ts",
"config/appInfo.config.ts",
"config/search-engines.config.ts",
"client/constants/time.constant.ts"
Expand Down
8 changes: 4 additions & 4 deletions config/vite.config.ts → vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { Redis, RedisOptions } from "ioredis";
import { PreviewServer, ViteDevServer, defineConfig } from "vite";
import { modelSource as embeddingModel } from "@energetic-ai/model-embeddings-en";

import { CategoryEngine } from "./appInfo.config";
import { Millisecond } from "../client/constants/time.constant";
import { CategoryEngine } from "./config/appInfo.config";
import { Millisecond } from "./client/constants/time.constant";

const REDIS_CACHE_EXPIRATION_TIME_SECONDS = 3600; // 1 hour
const RATE_LIMITER_OPTIONS = {
Expand Down Expand Up @@ -109,7 +109,7 @@ export default defineConfig(({ command }) => {
: undefined,
},
host: process.env.HOST,
port: process.env.PORT ? Number(process.env.PORT) : undefined,
port: 443,
hmr: {
port: process.env.HMR_PORT ? Number(process.env.HMR_PORT) : undefined,
},
Expand All @@ -123,7 +123,7 @@ export default defineConfig(({ command }) => {
? readFileSync(process.env.SSL_CERT_PATH)
: undefined,
},
host: process.env.HOST,
port: 443,
port: process.env.PORT ? Number(process.env.PORT) : undefined,
},
build: {
Expand Down

0 comments on commit b5403e8

Please sign in to comment.