Compare commits
No commits in common. "0d06e26d8985e54436839c7e09ccf144b4eb8c97" and "9ee31d3cf38da1e1a0dc772f45c2b3f5a70f2a6d" have entirely different histories.
0d06e26d89
...
9ee31d3cf3
4 changed files with 14 additions and 13 deletions
|
@ -3,8 +3,6 @@
|
|||
FROM oven/bun:latest AS base
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# install dependencies into temp directory
|
||||
# this will cache them and speed up future builds
|
||||
FROM base AS install
|
||||
|
@ -24,6 +22,7 @@ COPY --from=install /temp/dev/node_modules node_modules
|
|||
COPY . .
|
||||
|
||||
# [optional] tests & build
|
||||
ENV NODE_ENV=production
|
||||
# RUN bun test
|
||||
# RUN bun run build
|
||||
|
||||
|
@ -35,4 +34,5 @@ COPY --from=install /temp/prod/node_modules node_modules
|
|||
COPY --from=prerelease /app/ .
|
||||
|
||||
# run the app
|
||||
ENTRYPOINT [ "bun", "start" ]
|
||||
|
||||
ENTRYPOINT [ "bun", "run", "start" ]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"type": "module",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "bun src/server.ts",
|
||||
"start": "bun run src/server.ts",
|
||||
"dev": "bun --watch run src/server.ts",
|
||||
"hot": "bun --hot run src/server.ts",
|
||||
"build": "bun build src/server.ts --compile --minify --sourcemap --target=bun-linux-x64-modern --outfile server",
|
||||
|
|
|
@ -100,8 +100,9 @@ Bun.serve({
|
|||
|
||||
globalThis.loginTokens.add(token);
|
||||
|
||||
if (entriesCacheTime + entriesCacheTimeLimit < Date.now()) {
|
||||
setTimeout(getEntriesCached, 1);
|
||||
|
||||
}
|
||||
return new Response('Login successful', { headers });
|
||||
}
|
||||
|
||||
|
|
|
@ -1,25 +1,25 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
// Environment setup & latest features
|
||||
"lib": [
|
||||
"ESNext",
|
||||
"DOM",
|
||||
],
|
||||
"lib": ["ESNext"],
|
||||
"target": "ESNext",
|
||||
"module": "ESNext",
|
||||
"moduleDetection": "force",
|
||||
"jsx": "react-jsx",
|
||||
"allowJs": true,
|
||||
|
||||
// Bundler mode
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"noEmit": true,
|
||||
|
||||
// Best practices
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
|
||||
// Some stricter flags (disabled by default)
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": false,
|
||||
|
|
Loading…
Add table
Reference in a new issue