netlify.toml (21 lines of code) (raw):

[build] base = "" publish = "website/build" command = "yarn && cd website && yarn build" [context.production.environment] NODE_VERSION = "14.19.0" NODE_OPTIONS = "--max_old_space_size=4096" [context.deploy-preview.environment] NODE_VERSION = "14.19.0" NODE_OPTIONS = "--max_old_space_size=4096" PREVIEW_DEPLOY = "true" [[plugins]] package = "netlify-plugin-cache" [plugins.inputs] paths = [ "website/node_modules/.cache", ] [[headers]] for = "/movies.json" [headers.values] Access-Control-Allow-Origin = "*"