Skip to content

Commit 2c1f2c7

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

File tree

9 files changed

+946
-314
lines changed

9 files changed

+946
-314
lines changed

src/Templates.res

+1-1
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

+3-2
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)