Skip to content

Commit

Permalink
fix templates
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Mar 7, 2024
1 parent e87b12f commit 6992305
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion cmd/sst/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,6 @@ var Root = Command{
if err != nil {
return err
}

if result == "Yes" {
template = "nextjs"
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/sst/ui/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func parseError(input string) []string {
sections := strings.Split(input, "*")
for _, line := range sections[1:] {
line = strings.TrimSpace(line)
splits := strings.Split(line, ":")
splits := regexp.MustCompile("[a-zA-Z]+:").Split(line, -1)
final := strings.TrimSpace(splits[len(splits)-1])

for _, split := range strings.Split(final, "\n") {
Expand Down
2 changes: 1 addition & 1 deletion pkg/platform/templates/nextjs/files/sst.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="./.sst/platform/src/global.d.ts" />
/// <reference path="./.sst/platform/config.d.ts" />

export default $config({
app(input) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/platform/templates/vanilla/files/sst.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="./.sst/platform/src/global.d.ts" />
/// <reference path="./.sst/platform/config.d.ts" />

export default $config({
app(input) {
Expand Down

0 comments on commit 6992305

Please sign in to comment.