Visitar URL original
fix: default custom-env-config settings caused name conflicts by FossPrime · Pull Request #3193 · feathersjs/feathers · GitHub
Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update configuration.tpl.tsS
  • Loading branch information
FossPrime authored Jun 6, 2023
commit c41013af3585eec6dc27da771a49b50b54e8426a
6 changes: 3 additions & 3 deletions packages/generators/src/app/templates/configuration.tpl.tsS
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const configurationSchema = {
...defaultAppSettings,
port: { type: 'number' },
public: { type: 'string' },
origins: Type.Array(Type.String())
origins: { type: 'array', items: { type: 'string' } }
}
} as const

Expand All @@ -65,9 +65,9 @@ import { dataValidator } from './validators'
export const configurationSchema = Type.Intersect([
defaultAppConfiguration,
Type.Object({
host: Type.String(),
port: Type.Number(),
public: Type.String()
public: Type.String(),
origins: Type.Array(Type.String())
})
])

Expand Down