Skip to content

Commit

Permalink
Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cassis163 committed Oct 17, 2023
1 parent 490ee22 commit 6135867
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/functions

# Local Netlify folder
.netlify
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
cd ./src
go install github.com/a-h/templ/cmd/templ@latest
$GOPATH/bin/templ generate .
GOBIN=$(pwd)/../functions go install .
8 changes: 6 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
[build]
command = "go install github.com/a-h/templ/cmd/templ@latest && templ generate ./src && sh ./build.sh"
command = "sh ./build.sh"
functions = "functions"
publish = "public"

[build.environment]
GO_IMPORT_PATH = "github.com/cassis163/personal-site"
GO111MODULE = "on"
GO_VERSION = "1.21.2"

[[redirects]]
from = "/*"
to = "/.netlify/functions/gateway/:splat"
status = 200

0 comments on commit 6135867

Please sign in to comment.