diff --git a/adminSiteServer/appClass.tsx b/adminSiteServer/appClass.tsx index 7754fa5d79c..09fe4867bb0 100644 --- a/adminSiteServer/appClass.tsx +++ b/adminSiteServer/appClass.tsx @@ -160,6 +160,8 @@ export class OwidAdminApp { // https://vitejs.dev/guide/ssr const { createServer } = await import("vite") const vite = await createServer({ + configFile: "vite.config-site.mts", + css: { devSourcemap: true }, server: { middlewareMode: true }, appType: "custom", base: "/", diff --git a/package.json b/package.json index 633077c4df1..7912d51f535 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "refreshPageviews": "tsx --tsconfig tsconfig.tsx.json db/refreshPageviewsFromDatasette.ts", "revertLastDbMigration": "tsx --tsconfig tsconfig.tsx.json node_modules/typeorm/cli.js migration:revert -d db/dataSource.ts", "startAdminServer": "node --enable-source-maps ./itsJustJavascript/adminSiteServer/app.js", - "startAdminDevServer": "tsx watch --tsconfig tsconfig.tsx.json adminSiteServer/app.tsx", + "startAdminDevServer": "tsx watch --ignore '**.mjs' --tsconfig tsconfig.tsx.json adminSiteServer/app.tsx", "startLocalCloudflareFunctions": "wrangler pages dev localBake --compatibility-date 2023-10-09", "startDeployQueueServer": "node --enable-source-maps ./itsJustJavascript/baker/startDeployQueueServer.js", "startLernaWatcher": "lerna watch --scope '@ourworldindata/*' -- lerna run build --scope=\\$LERNA_PACKAGE_NAME --include-dependents",