Skip to content

Commit

Permalink
typescript 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
inetol committed Sep 9, 2024
1 parent 2db9456 commit fe7988c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"react-dom": "~18.3.1",
"react-icons": "~5.3.0",
"tailwindcss": "~3.4.10",
"typescript": "~5.5.4",
"typescript": "~5.6.2",
"vike": "~0.4.195",
"vike-react": "~0.5.5",
"vite": "~5.4.3",
Expand Down
4 changes: 2 additions & 2 deletions scripts/compress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ await Promise.all(
const fileContent = await Bun.file(file).arrayBuffer();

console.debug('[COMPRESS] Compressing:', file);
await writeFile(`${file}.gz`, gzipSync(fileContent));
await writeFile(`${file}.br`, brotliCompressSync(fileContent));
await writeFile(`${file}.gz`, gzipSync(fileContent).buffer);
await writeFile(`${file}.br`, brotliCompressSync(fileContent).buffer);
})
);
4 changes: 2 additions & 2 deletions src/pages/+config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import vikeReact from 'vike-react/config';
import { config } from 'vike-react/config';
import type { Config } from 'vike/types';

export default {
extends: [vikeReact]
extends: [config]
} satisfies Config;
2 changes: 1 addition & 1 deletion src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const frontend = serve({
}

if (localStatic.endsWith('.html')) {
headers['Cache-Control'] = 'max-age=0, private, must-revalidate';
headers['Cache-Control'] = 'max-age=0, no-store';
}

logger.debug(req.method, reqURL.pathname);
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": false,
"noUncheckedIndexedAccess": true,
"noUncheckedSideEffectImports": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"verbatimModuleSyntax": true,
Expand Down

0 comments on commit fe7988c

Please sign in to comment.