Skip to content

Commit

Permalink
fix(settings): default
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed May 28, 2024
1 parent 58d07f9 commit 04613aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const DEFAULT_FORM_OPTIONS: FormsSettings = {
};

export default function astroForms(settings: Partial<FormsSettings> = {}) {
objectAssignDeep(FORM_OPTIONS, settings, DEFAULT_FORM_OPTIONS)
objectAssignDeep(FORM_OPTIONS, DEFAULT_FORM_OPTIONS, settings);

return async function onRequest({ locals, request, cookies }: APIContext, next: MiddlewareNext) {
const likeAstro = { locals, request, cookies };
Expand Down

0 comments on commit 04613aa

Please sign in to comment.