Merged
Conversation
デプロイ時に出たエラーを修正 `[ERROR] Uploading a Pages _worker.js directory as an asset.`
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
studio | 6645112 | Commit Preview URL Branch Preview URL |
Apr 07 2026, 05:22 PM |
Contributor
There was a problem hiding this comment.
Pull request overview
WORKごとにユニークなURL(/works/[slug])を用意し、そのページで個別のOGP/metaを出しつつ、実際の表示は従来どおりトップ(/?work=...)へリダイレクトしてModalを開く導線を実現するPRです。
Changes:
- WORK一覧に
slugを付与できるようにし、slug⇄work の参照をユーティリティ側で整備 /works/[work]の静的ページを追加し、個別OGPを生成した上でトップへリダイレクト- Layoutにページごとの meta 上書き(title/description/thumbnail/canonical)を追加
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/utils/work.ts | work slug の生成・参照、queryWorks() の返却へ slug 付与、getWorkSlug() の挙動変更 |
| src/pages/works/[work].astro | 個別OGP用の静的ページ生成+トップページへリダイレクト |
| src/layouts/Layout.astro | meta上書き用の meta props を追加し、head内の一部metaを差し替え可能に |
| src/components/works/WorkModal.svelte | 「リンクをコピー」を /works/[slug] に変更 |
| scripts/collect-licenses.ts | license text 取得失敗時にスキップできるように改善+許容ライセンス追加 |
| package.json | wrangler のバージョン更新(依存区分変更含む) |
| pnpm-lock.yaml | 依存更新のロック反映 |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Rinrin0413
approved these changes
Apr 7, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
getStaticPathsを使って事前に/works/[slug]のようなページを生成しておく