Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

검색 인덱스를 API 라우트를 통해 생성 #360

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

XiNiHa
Copy link
Contributor

@XiNiHa XiNiHa commented Mar 15, 2024

No description provided.

Copy link

vercel bot commented Mar 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
developers ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 15, 2024 8:18am

fileName && isIndexFileName(fileName) && indexFilesMapping[fileName];
if (!slug) return new Response(null, { status: 404 });
const entryMap = import.meta.glob("../../content/**/*.mdx", {
query: "?raw",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오이런게...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

일반 import에서는 그냥 URL에 ?raw를 붙여서 하실 수 있습니다
https://vitejs.dev/guide/assets#importing-asset-as-string

@XiNiHa XiNiHa merged commit e8599a0 into main Mar 15, 2024
4 checks passed
@XiNiHa XiNiHa deleted the feat/content-index-as-api-route branch March 15, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants