Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a5d8c37

Browse files
committed
Next.js template: Next.js 15 + fix static export
1 parent de6ccaa commit a5d8c37

File tree

9 files changed

+946
-314
lines changed

9 files changed

+946
-314
lines changed

‎src/Templates.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let templates = [
1515
{
1616
name: "rescript-template-nextjs",
1717
displayName: "Next.js",
18-
shortDescription: "Next.js 14 and Tailwind CSS",
18+
shortDescription: "Next.js 15 with static export and Tailwind 3",
1919
},
2020
{
2121
name: basicTemplateName,

‎templates/rescript-template-nextjs/next.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const transpileModules = ["rescript"].concat(rescript["bs-dependencies"]);
55

66
const config = {
77
pageExtensions: ["jsx", "js"],
8+
output: "export",
89
env: {
910
ENV: process.env.NODE_ENV,
1011
},
@@ -32,8 +33,8 @@ const config = {
3233
},
3334
});
3435

35-
return config
36-
}
36+
return config;
37+
},
3738
};
3839

3940
export default {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /