Refactor asset handling and authentication logic (for node)

Updated asset path configuration and server-side logic to standardize asset serving. Introduced `shouldSkipAuth` to bypass authentication for asset requests. Added test coverage for the new asset path handling logic.
This commit is contained in:
dswbx
2025-01-10 20:58:03 +01:00
parent 87e07570d4
commit 3bf92a8c65
7 changed files with 65 additions and 27 deletions

View File

@@ -58,7 +58,7 @@ const result = await esbuild.build({
sourcemap,
entryPoints: ["src/ui/main.tsx"],
entryNames: "[dir]/[name]-[hash]",
outdir: "dist/static",
outdir: "dist/static/assets",
platform: "browser",
bundle: true,
splitting: true,
@@ -224,4 +224,4 @@ await tsup.build({
await tsup.build({
...baseConfig("astro")
});
});