Skip to content
Draft
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion .textlintrc.ja.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"plugins": ["mdx"],
"rules": {
"preset-ja-spacing": true
"preset-ja-spacing": {
"ja-space-around-code": false,
"ja-space-around-link": false,
"ja-space-around-emphasis": false,
"ja-space-around-strong": false
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"prettier": "^3.8.3",
"prettier-plugin-astro": "^0.14.1",
"textlint": "14.7.2",
"textlint-plugin-mdx": "1.0.2",
"textlint-rule-preset-ja-spacing": "2.4.3",
"textlint-plugin-mdx": "1.1.0",
"textlint-rule-preset-ja-spacing": "3.0.3",
"typescript": "6.0.3",
"typescript-eslint": "^8.59.3",
"wrangler": "^4.99.0"
Expand Down
127 changes: 123 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/content/docs/ja/guides/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,9 @@ export const onRequest = defineMiddleware(async (context, next) => {
});
```

HTMLフォームの結果を永続化するための一般的な手法は、 [POST / Redirect / GET パターン](https://en.wikipedia.org/wiki/Post/Redirect/Get) です。このリダイレクトにより、ページ更新時の「フォーム再送信の確認」ダイアログがなくなり、アクションの結果をユーザーセッション全体で永続化できるようになります。
HTMLフォームの結果を永続化するための一般的な手法は、[POST/Redirect/GETパターン](https://en.wikipedia.org/wiki/Post/Redirect/Get)です。このリダイレクトにより、ページ更新時の「フォーム再送信の確認」ダイアログがなくなり、アクションの結果をユーザーセッション全体で永続化できるようになります。

この例では、[Netlify サーバーアダプター](/ja/guides/integrations-guide/netlify/) がインストールされている状態で、Netlify Blobを使用したセッションストレージを利用して、すべてのフォーム送信にPOST / Redirect / GETパターンを適用しています。アクションの結果はセッションストアに書き込まれ、リダイレクト後にセッションIDを使用して取得されます:
この例では、[Netlifyサーバーアダプター](/ja/guides/integrations-guide/netlify/)がインストールされている状態で、Netlify Blobを使用したセッションストレージを利用して、すべてのフォーム送信にPOST/Redirect/GETパターンを適用しています。アクションの結果はセッションストアに書き込まれ、リダイレクト後にセッションIDを使用して取得されます:

```ts title="src/middleware.ts"
import { defineMiddleware } from 'astro:middleware';
Expand Down
Loading