perf: add Vercel Edge cache, remove render-blocking @import font

This commit is contained in:
posimai 2026-03-20 14:07:52 +09:00
parent 0f76f24b15
commit cb7ca436a4
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,7 @@ export default async function handler(req, res) {
res.setHeader('Access-Control-Allow-Origin', '*');
res.setHeader('Access-Control-Allow-Methods', 'GET, OPTIONS');
res.setHeader('Access-Control-Allow-Headers', 'Content-Type');
res.setHeader('Cache-Control', 's-maxage=1800, stale-while-revalidate=3600');
if (req.method === 'OPTIONS') {
return res.status(200).end();

View File

@ -22,9 +22,11 @@
<script src="https://unpkg.com/lucide@0.344.0/dist/umd/lucide.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap">
<style>
*,
*::before,
*::after {