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

Commit 1f1373e

Browse files
committed
Move netlifyFunctionTemplate into templates/ folder
Organize the template for Netlify Functions into a templates/ folder.
1 parent b1efd12 commit 1f1373e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ const NEXT_CONFIG_PATH = join(".", "next.config.js");
2020
const NEXT_DIST_DIR = getNextDistDir({ nextConfigPath: NEXT_CONFIG_PATH });
2121

2222
// This is the Netlify Function template that wraps all SSR pages
23-
const FUNCTION_TEMPLATE_PATH = join(__dirname, "netlifyFunctionTemplate.js");
23+
const FUNCTION_TEMPLATE_PATH = join(
24+
__dirname,
25+
"templates",
26+
"netlifyFunction.js"
27+
);
2428

2529
// This is the file where custom redirects can be configured
2630
const CUSTOM_REDIRECTS_PATH = join(".", "_redirects");
File renamed without changes.

0 commit comments

Comments
 (0)