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

i18n(ja): Update configuration-reference.mdx #4546

Merged
Merged
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
4 changes: 1 addition & 3 deletions src/content/docs/ja/guides/content-collections.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,7 @@ const { Content, headings } = await entry.render();

コンテンツコレクションは`src/pages/`ディレクトリの外に保存されます。つまり、デフォルトではコレクション項目に対してルーティングは生成されません。コレクション項目からHTMLページを生成するには、手動で新しい[動的ルーティング](/ja/core-concepts/routing/#動的ルーティング)を作成する必要があります。動的ルーティングは、リクエストのパラメーター (例:`src/pages/blog/[...slug].astro`の`Astro.params.slug`) をマッピングして、コレクション内の正しいエントリーを取得します。

ルーティングを生成する正確な方法は、ビルドの[出力](/ja/reference/configuration-reference/)モードによって異なります。モードはstatic(デフォルト)またはserver(SSRの場合)です。

{/* TODO: コンフィグページが更新されたら「出力」のリンク先を /ja/reference/configuration-reference/#output にする */}
ルーティングを生成する正確な方法は、ビルドの[出力](/ja/reference/configuration-reference/#output)モードによって異なります。モードはstatic(デフォルト)またはserver(SSRの場合)です。

### 静的出力のビルド(デフォルト)

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ja/guides/images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ interface ImageMetadata {

### リモート画像の許可

`image.domains``image.remotePatterns`を使用して、画像の最適化に使用する、許可された画像ソースのURLドメインとパターンのリストを設定できます。この設定は、外部ソースから画像を表示する際にサイトを保護するために追加の安全性を提供します。
[`image.domains`](/ja/reference/configuration-reference/#imagedomains)と[`image.remotePatterns`](/ja/reference/configuration-reference/#imageremotepatterns)を使用して、画像の最適化に使用する、許可された画像ソースのURLドメインとパターンのリストを設定できます。この設定は、外部ソースから画像を表示する際にサイトを保護するために追加の安全性を提供します。

他のソースからのリモート画像は最適化されませんが、これらの画像に`<Image />`コンポーネントを使用すると、Cumulative Layout Shift(CLS)を防ぐことができます。

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ja/guides/server-side-rendering.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ SSRを有効にしたプロジェクトをデプロイするには、アダプ
</Fragment>
</PackageManagerTabs>

2. `astro.config.mjs`ファイルのimportとdefault exportに[アダプターを追加します](/ja/reference/configuration-reference/#アダプター)。
2. `astro.config.mjs`ファイルのimportとdefault exportに[アダプターを追加します](/ja/reference/configuration-reference/#adapter)。

```js ins={3,6-7}
// astro.config.mjs
Expand Down
Loading