diff --git a/app b/app deleted file mode 100755 index cfbd754..0000000 Binary files a/app and /dev/null differ diff --git a/app.config.ts b/app.config.ts index 4722990..6708aa7 100644 --- a/app.config.ts +++ b/app.config.ts @@ -20,7 +20,10 @@ export default defineConfig({ }, server: { preset: "bun", + noExternals: true, + compressPublicAssets: true, + prerender: { routes: ["/", "/sitemaps.xml"], }, diff --git a/justfile b/justfile index 82c618a..5e92432 100755 --- a/justfile +++ b/justfile @@ -6,5 +6,5 @@ push: git push build: - bun run build --bun - bun build --compile --minify --outfile app ./.output/server/index.mjs \ No newline at end of file + bun --bun run build + bun --bun build --compile --target=bun-linux-x64 --sourcemap --minify --outfile app ./.output/server/index.mjs ./.output/public/**/*.gz \ No newline at end of file diff --git a/nix/packages/flake-module.nix b/nix/packages/flake-module.nix index 1d51640..d165dd1 100755 --- a/nix/packages/flake-module.nix +++ b/nix/packages/flake-module.nix @@ -21,7 +21,7 @@ export SESSION_SECRET='jJBqeVMvQe52HqLYWDunLEKbkkC9JqCrgP92nV5j2dC99eZWCtK9H2NrASH8AbxF' bun run build --bun - bun build --compile --minify --outfile ${pname} ./.output/server/index.mjs + bun build --compile --target=bun-linux-x64 --minify --outfile ${pname} ./.output/server/index.mjs runHook postBuild '';