Skip to content

Commit 58f0579

Browse files
committed
BREAKING CHANGE: remove sites and endpoint definitions
1 parent 3755b42 commit 58f0579

File tree

3 files changed

+0
-61
lines changed

3 files changed

+0
-61
lines changed

pkg/codeconfig/codeconfig.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,6 @@ func (c *codeConfig) ToStack() (*stack.Stack, error) {
308308
Queues: map[string]stack.Queue{},
309309
Schedules: map[string]stack.Schedule{},
310310
Apis: map[string]string{},
311-
Sites: map[string]stack.Site{},
312-
EntryPoints: map[string]stack.Entrypoint{},
313311
}
314312
errs := utils.NewErrorList()
315313
for handler, f := range c.functions {

pkg/stack/site_helper.go

Lines changed: 0 additions & 34 deletions
This file was deleted.

pkg/stack/types.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -121,29 +121,6 @@ type Topic struct{}
121121

122122
type Queue struct{}
123123

124-
// A static site deployment with Nitric
125-
// We also support server rendered applications
126-
type Site struct {
127-
// Base path of the site
128-
// Will be used to execute scripts
129-
Path string `yaml:"path"`
130-
// Path to get assets to upload
131-
// this will be relative to path
132-
AssetPath string `yaml:"assetPath"`
133-
// Build scripts to execute before upload
134-
BuildScripts []string `yaml:"buildScripts,omitempty"`
135-
}
136-
137-
type EntrypointPath struct {
138-
Target string `yaml:"target"`
139-
Type string `yaml:"type"` // 'site' | 'api' | 'function' | 'container';
140-
}
141-
142-
type Entrypoint struct {
143-
Domains []string `yaml:"domains,omitempty"`
144-
Paths map[string]EntrypointPath `yaml:"paths,omitempty"`
145-
}
146-
147124
type Stack struct {
148125
dir string
149126
Name string `yaml:"name"`
@@ -156,8 +133,6 @@ type Stack struct {
156133
Schedules map[string]Schedule `yaml:"schedules,omitempty"`
157134
apiDocs map[string]*openapi3.T `yaml:"-"`
158135
Apis map[string]string `yaml:"apis,omitempty"`
159-
Sites map[string]Site `yaml:"sites,omitempty"`
160-
EntryPoints map[string]Entrypoint `yaml:"entrypoints,omitempty"`
161136
}
162137

163138
func (s *Stack) SetApiDoc(name string, doc *openapi3.T) {

0 commit comments

Comments
 (0)