Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.
This repository was archived by the owner on May 10, 2021. It is now read-only.

Investigate tradeoffs between redirects and copying files [to correct paths] #129

Closed
@lindsaylevine

Description

@lindsaylevine

Per #75 (comment) on i18n PR:

I would love to get some insight about impact on HTTP request duration and about impact on build pipeline duration for two repos, one with 10K redirects and one with 10K pages à 100KB each. So that we can make an informed decision about the copy vs redirect approach for the naked routes without locale. I thought of this here, because this "hack" is needed because of the redirect approach.

We can either do something like /some/path /en/some/path 200 or we copy the file located at .next/serverless/pages/en/some/path.html to both out_publish/some/path.html and out_publish/en/some/path.html. After some discussion during i18n, we decided to stick with the redirect approach that was originally used at the start of the i18n work.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions