Skip to content

Commit

Permalink
Meteor ROOT_URL fix (#3731)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemclaren committed Jul 12, 2024
1 parent fffe5b1 commit 532564c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/command/launch/launch_frameworks.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ func (state *launchState) scannerSetAppconfig(ctx context.Context) error {
for envName, envVal := range srcInfo.Env {
if envVal == "APP_FQDN" {
appConfig.SetEnvVariable(envName, appConfig.AppName+".fly.dev")
} else if envVal == "APP_URL" {
appConfig.SetEnvVariable(envName, "https://"+appConfig.AppName+".fly.dev")
} else {
appConfig.SetEnvVariable(envName, envVal)
}
Expand Down
2 changes: 1 addition & 1 deletion scanner/jsFramework.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func configureJsFramework(sourceDir string, config *ScannerConfig) (*SourceInfo,
srcInfo.Family = "Meteor"
srcInfo.Env = map[string]string{
"PORT": "3000",
"ROOT_URL": "APP_FQDN",
"ROOT_URL": "APP_URL",
}
} else if deps["@nestjs/core"] != nil {
srcInfo.Family = "NestJS"
Expand Down

0 comments on commit 532564c

Please sign in to comment.