rlz-engine 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/back/server.js +4 -4
- package/package.json +1 -1
package/dist/back/server.js
CHANGED
|
@@ -16,7 +16,7 @@ export async function runServer({ production, domain, certDir, staticDir, init }
|
|
|
16
16
|
L.info({ production }, 'runServer');
|
|
17
17
|
const httpServer = fastify({
|
|
18
18
|
loggerInstance: logger('http'),
|
|
19
|
-
ajv: { plugins: [formatsPlugin] }
|
|
19
|
+
ajv: { plugins: [formatsPlugin], customOptions: { useDefaults: false } }
|
|
20
20
|
});
|
|
21
21
|
if (!production) {
|
|
22
22
|
await httpServer.register(fastifyCors, {
|
|
@@ -25,7 +25,7 @@ export async function runServer({ production, domain, certDir, staticDir, init }
|
|
|
25
25
|
await httpServer.register(fastifyCompress);
|
|
26
26
|
await httpServer.register(fastifySensible);
|
|
27
27
|
await httpServer.register(fastifyResponseValidation, {
|
|
28
|
-
ajv: { plugins: [formatsPlugin] }
|
|
28
|
+
ajv: { plugins: [formatsPlugin], useDefaults: false }
|
|
29
29
|
});
|
|
30
30
|
await init(httpServer);
|
|
31
31
|
httpServer.all('/api/*', async () => {
|
|
@@ -48,7 +48,7 @@ export async function runServer({ production, domain, certDir, staticDir, init }
|
|
|
48
48
|
key: certAndKey.pkey
|
|
49
49
|
},
|
|
50
50
|
loggerInstance: logger('https'),
|
|
51
|
-
ajv: { plugins: [formatsPlugin] }
|
|
51
|
+
ajv: { plugins: [formatsPlugin], customOptions: { useDefaults: false } }
|
|
52
52
|
});
|
|
53
53
|
await httpsServer.register(fastifyAcmeSecurePlugin, {
|
|
54
54
|
certDir,
|
|
@@ -59,7 +59,7 @@ export async function runServer({ production, domain, certDir, staticDir, init }
|
|
|
59
59
|
});
|
|
60
60
|
await httpsServer.register(fastifyCompress);
|
|
61
61
|
await httpsServer.register(fastifySensible);
|
|
62
|
-
await httpsServer.register(fastifyResponseValidation, { ajv: { plugins: [formatsPlugin] } });
|
|
62
|
+
await httpsServer.register(fastifyResponseValidation, { ajv: { plugins: [formatsPlugin], useDefaults: false } });
|
|
63
63
|
await init(httpsServer);
|
|
64
64
|
httpsServer.all('/api/*', async () => {
|
|
65
65
|
return httpErrors.notFound();
|