Skip to content
Snippets Groups Projects
Commit babe9b42 authored by thucpn's avatar thucpn
Browse files

fix: css should work

parent 21674fa7
No related branches found
No related tags found
No related merge requests found
static/
\ No newline at end of file
server/
\ No newline at end of file
@import "tailwindcss";
@source '../../node_modules/@llamaindex/chat-ui/**/*.{ts,tsx}';
@source '../app/**/*.{ts,tsx}';
@custom-variant dark (&:is(.dark *));
......
......@@ -18,7 +18,8 @@
}
},
"files": [
"dist"
"dist",
"server"
],
"repository": {
"type": "git",
......@@ -26,11 +27,11 @@
"directory": "packages/server"
},
"scripts": {
"clean": "rm -rf ./dist next/.next next/out",
"clean": "rm -rf ./dist ./server next/.next next/out",
"prebuild": "pnpm clean",
"build": "bunchee",
"postbuild": "pnpm copy:next-src && pnpm build:static && pnpm copy:static",
"copy:next-src": "cp -r ./next ./dist/next",
"copy:next-src": "cp -r ./next ./server",
"build:static": "cd ./next && next build",
"copy:static": "cp -r ./next/out ./dist/static",
"dev": "bunchee --watch"
......
......@@ -11,7 +11,7 @@ export class LlamaIndexServer {
workflowFactory: () => Promise<ServerWorkflow> | ServerWorkflow;
constructor({ workflow, ...nextAppOptions }: LlamaIndexServerOptions) {
const nextDir = path.join(__dirname, "./next");
const nextDir = path.join(__dirname, "../server");
const dev = process.env.NODE_ENV !== "production";
this.app = next({ ...nextAppOptions, dev, dir: nextDir });
this.port = nextAppOptions.port ?? 3000;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment