diff --git a/astro.config.mjs b/astro.config.mjs index 1bbd008..78cf89a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,9 +8,13 @@ import preact from "@preact/preset-vite"; export default defineConfig({ site: "https://snubi.net/", integrations: [astroPreact({ compat: true }), mdx()], - output: "server", + output: "static", + vite: { plugins: [preact, tailwindcss()], }, - prefetch: true, + + prefetch: { + defaultStrategy: "hover", + }, }); diff --git a/package.json b/package.json index f895091..1a5e7f6 100644 --- a/package.json +++ b/package.json @@ -23,12 +23,12 @@ "astro-seo": "^0.8.4", "motion": "^11.18.1", "preact": "^10.28.2", + "react": "npm:@preact/compat@^17.1.2", + "react-dom": "npm:@preact/compat@^17.1.2", "sharp": "^0.34.5", "tailwindcss": "^4.1.11", "three": "^0.173.0", - "zod": "^3.23.8", - "react": "npm:@preact/compat@^17.1.2", - "react-dom": "npm:@preact/compat@^17.1.2" + "zod": "^3.23.8" }, "devDependencies": { "@eslint/eslintrc": "^3.3.3", @@ -51,12 +51,6 @@ "overrides": { "react": "npm:@preact/compat", "react-dom": "npm:@preact/compat" - }, - "ignoredBuiltDependencies": [ - "@tailwindcss/oxide", - "esbuild", - "sharp", - "workerd" - ] + } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 028f618..646b99e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -108,7 +108,7 @@ importers: version: 8.54.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.8.3) wrangler: specifier: ^4.54.0 - version: 4.61.0 + version: 4.61.0(@cloudflare/workers-types@4.20260129.0) packages: @@ -311,6 +311,9 @@ packages: cpu: [x64] os: [win32] + '@cloudflare/workers-types@4.20260129.0': + resolution: {integrity: sha512-ytqtGV7L60HI/BL/p6tY1A5DIIlNl0NX+wiNeGTyB6e65x1HEeZrceVzL5RsVws7xMsBpF+2VAlm/3ga3c7Txg==} + '@cspotcode/source-map-support@0.8.1': resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} @@ -4081,6 +4084,9 @@ snapshots: '@cloudflare/workerd-windows-64@1.20260124.0': optional: true + '@cloudflare/workers-types@4.20260129.0': + optional: true + '@cspotcode/source-map-support@0.8.1': dependencies: '@jridgewell/trace-mapping': 0.3.9 @@ -8078,7 +8084,7 @@ snapshots: '@cloudflare/workerd-linux-arm64': 1.20260124.0 '@cloudflare/workerd-windows-64': 1.20260124.0 - wrangler@4.61.0: + wrangler@4.61.0(@cloudflare/workers-types@4.20260129.0): dependencies: '@cloudflare/kv-asset-handler': 0.4.2 '@cloudflare/unenv-preset': 2.11.0(unenv@2.0.0-rc.24)(workerd@1.20260124.0) @@ -8089,6 +8095,7 @@ snapshots: unenv: 2.0.0-rc.24 workerd: 1.20260124.0 optionalDependencies: + '@cloudflare/workers-types': 4.20260129.0 fsevents: 2.3.3 transitivePeerDependencies: - bufferutil diff --git a/public/.assetsignore b/public/.assetsignore new file mode 100644 index 0000000..1b006a0 --- /dev/null +++ b/public/.assetsignore @@ -0,0 +1,2 @@ +_worker.js +_routes.json \ No newline at end of file diff --git a/src/components/posts/post-item.astro b/src/components/posts/post-item.astro index 63bdea1..0c3dcf2 100644 --- a/src/components/posts/post-item.astro +++ b/src/components/posts/post-item.astro @@ -17,6 +17,7 @@ const pubDate = post.data.pubDate.toLocaleDateString("ko-KR", {

+ {name} diff --git a/src/components/ui/header.astro b/src/components/ui/header.astro index 3d2f17c..c3abed7 100644 --- a/src/components/ui/header.astro +++ b/src/components/ui/header.astro @@ -16,7 +16,7 @@ import CategoryItem from "./category-item.astro"; 소개 @@ -24,7 +24,7 @@ import CategoryItem from "./category-item.astro";
- +
diff --git a/src/pages/posts/[id]/index.astro b/src/pages/posts/[id]/index.astro index eeea8e1..dec44f0 100644 --- a/src/pages/posts/[id]/index.astro +++ b/src/pages/posts/[id]/index.astro @@ -37,7 +37,7 @@ const { Content } = await render(post); prose lg:mt-8 mb-40 - col-span-2 max-w-full break-words break-keep + col-span-2 max-w-full wrap-break-word break-keep dark:prose-invert prose-pre:bg-white prose-pre:text-gray-900 prose-pre:dark:bg-gray-900 prose-pre:dark:text-gray-100 `} diff --git a/wrangler.jsonc b/wrangler.jsonc index 721ba2e..f417ae9 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -1,7 +1,7 @@ { "name": "snubi", - "compatibility_date": "2025-12-27", // Update to the day you deploy + "compatibility_date": "2026-01-29", // Update to the day you deploy "assets": { - "directory": "./dist" - } + "directory": "./dist", + }, }