Skip to content

Commit b346bf4

Browse files
Updating how server is launched locally (#2222)
updating how server is launched locally adding dev dependencies to support adding netlify.toml and specifying node and hugo versions Signed-off-by: Nate W <[email protected]>
1 parent a3472bc commit b346bf4

File tree

5 files changed

+31061
-832
lines changed

5 files changed

+31061
-832
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ resources/
44
node_modules/
55
.hugo_build.lock
66
.DS_Store
7+
8+
# Local Netlify folder
9+
.netlify

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ git submodule update --init --recursive
3232
npm install
3333
```
3434

35-
You can then run the site using `hugo server`.
35+
You can then run the site using `npm run serve` (select "[Hugo]").
3636

3737
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?repo=cncf/glossary)

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build.environment]
2+
NODE_VERSION = "18.16.1"
3+
HUGO_VERSION = "0.115.2"

0 commit comments

Comments
 (0)