fix(server-netlify): Fix Netlify build configuration path.

This commit is contained in:
SamTolmay 2021-06-11 13:34:08 +02:00
parent d1b9fc4035
commit e2ddc11ad5

View File

@ -14,12 +14,14 @@
limitations under the License.
*/
import path from 'path';
import serverless from 'serverless-http';
import getServer from '@lowdefy/server';
import { createGetSecretsFromEnv } from '@lowdefy/node-utils';
const server = getServer({
buildDirectory: './build',
// __dirname is important here
buildDirectory: path.resolve(__dirname, './build'),
development: false,
getSecrets: createGetSecretsFromEnv(),
gqlExpressPath: '/',