Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/content/docs/zh-tw/reference/errors/invalid-rewrite404.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: You attempted to rewrite a 404 inside a static page, and this isn't allowed.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

:::caution[已廢棄]
此錯誤來自舊版本的 Astro,已不再使用。如果你無法將專案升級到新版本,可以檢視 [未維護的舊文件快照](/zh-tw/upgrade-astro/#舊版本文件不再維護) 以獲取幫助。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
此錯誤來自舊版本的 Astro,已不再使用。如果你無法將專案升級到新版本,可以檢視 [未維護的舊文件快照](/zh-tw/upgrade-astro/#舊版本文件不再維護) 以獲取幫助。
此錯誤來自舊版本的 Astro,已不再使用。如果你無法將專案升級到新版本,可以檢視[不再維護的舊文件快照](/zh-tw/upgrade-astro/#舊版文件不再維護)以獲取幫助。

這樣感覺比較對

:::

> **InvalidRewrite404**:只有在隨需頁面 (On-demand pages) 中才允許重寫 404。
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
> **InvalidRewrite404**:只有在隨需頁面 (On-demand pages) 中才允許重寫 404。
> **InvalidRewrite404**:只有在隨需頁面On-demand pages中才允許重寫 404。


## 發生了什麼錯誤?
使用者嘗試在靜態頁面中重寫 404 頁面。


Loading