Skip to content

Commit b5ad7e0

Browse files
committed
BREAKING CHANGE: remove sites and endpoint definitions
1 parent 2f7926d commit b5ad7e0

File tree

5 files changed

+0
-213
lines changed

5 files changed

+0
-213
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/provider/local/entrypoint.go

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

pkg/provider/local/local.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ func (l *local) Apply(name string) error {
9999
}
100100
}
101101

102-
for k, v := range l.s.EntryPoints {
103-
err = l.entrypoint(name, k, &v)
104-
if err != nil {
105-
return errors.WithMessage(err, "entrypoint "+k)
106-
}
107-
}
108102
return nil
109103
}
110104

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
@@ -115,29 +115,6 @@ type Topic struct{}
115115

116116
type Queue struct{}
117117

118-
// A static site deployment with Nitric
119-
// We also support server rendered applications
120-
type Site struct {
121-
// Base path of the site
122-
// Will be used to execute scripts
123-
Path string `yaml:"path"`
124-
// Path to get assets to upload
125-
// this will be relative to path
126-
AssetPath string `yaml:"assetPath"`
127-
// Build scripts to execute before upload
128-
BuildScripts []string `yaml:"buildScripts,omitempty"`
129-
}
130-
131-
type EntrypointPath struct {
132-
Target string `yaml:"target"`
133-
Type string `yaml:"type"` // 'site' | 'api' | 'function' | 'container';
134-
}
135-
136-
type Entrypoint struct {
137-
Domains []string `yaml:"domains,omitempty"`
138-
Paths map[string]EntrypointPath `yaml:"paths,omitempty"`
139-
}
140-
141118
type Stack struct {
142119
dir string
143120
Name string `yaml:"name"`
@@ -150,8 +127,6 @@ type Stack struct {
150127
Schedules map[string]Schedule `yaml:"schedules,omitempty"`
151128
apiDocs map[string]*openapi3.T `yaml:"-"`
152129
Apis map[string]string `yaml:"apis,omitempty"`
153-
Sites map[string]Site `yaml:"sites,omitempty"`
154-
EntryPoints map[string]Entrypoint `yaml:"entrypoints,omitempty"`
155130
}
156131

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

0 commit comments

Comments
 (0)