diff --git a/app b/app new file mode 100755 index 0000000..cfbd754 Binary files /dev/null and b/app differ diff --git a/app.config.ts b/app.config.ts index 2dba310..4722990 100644 --- a/app.config.ts +++ b/app.config.ts @@ -20,6 +20,7 @@ export default defineConfig({ }, server: { preset: "bun", + noExternals: true, prerender: { routes: ["/", "/sitemaps.xml"], }, diff --git a/justfile b/justfile index 6d42776..82c618a 100755 --- a/justfile +++ b/justfile @@ -3,4 +3,8 @@ push: git add . git commit -m 'too lazy to think of a message, so enjoy this pointless text. Good luck future me...' - git push \ No newline at end of file + git push + +build: + bun run build --bun + bun build --compile --minify --outfile app ./.output/server/index.mjs \ No newline at end of file diff --git a/nix/packages/flake-module.nix b/nix/packages/flake-module.nix index 9ec68c7..1d51640 100755 --- a/nix/packages/flake-module.nix +++ b/nix/packages/flake-module.nix @@ -21,6 +21,7 @@ export SESSION_SECRET='jJBqeVMvQe52HqLYWDunLEKbkkC9JqCrgP92nV5j2dC99eZWCtK9H2NrASH8AbxF' bun run build --bun + bun build --compile --minify --outfile ${pname} ./.output/server/index.mjs runHook postBuild ''; @@ -29,8 +30,8 @@ runHook preInstall mkdir -p $out/bin - cp -r ./.output/* $out - bun build ./.output/server/index.mjs --compile --outfile $out/bin/${pname} + cp ${pname} $out/bin + # cp -r ./.output/* $out runHook postInstall ''; diff --git a/src/entry-client.tsx b/src/entry-client.tsx index 0ca4e3c..b09d022 100644 --- a/src/entry-client.tsx +++ b/src/entry-client.tsx @@ -2,3 +2,5 @@ import { mount, StartClient } from "@solidjs/start/client"; mount(() => , document.getElementById("app")!); + +export default {};