Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Polyfill Node with `Intl` that has data for all locales.
// See: https://formatjs.io/guides/runtime-environments/#server
const IntlPolyfill = require("react-intl");
Intl.NumberFormat = IntlPolyfill.NumberFormat;
Intl.DateTimeFormat = IntlPolyfill.DateTimeFormat;
const { readFileSync } = require("fs");
const { basename } = require("path");
const express = require("express");
const accepts = require("accepts");
const glob = require("glob");
const next = require("next");
const {create} = require("bablic");
const sitemapAndRobots = require('./scripts/sitemapAndRobots')
const port = parseInt(process.env.PORT, 10) || 3000;
const dev = process.env.NODE_ENV !== "production";
const app = next({ dir: './src', dev });
const handle = app.getRequestHandler();
const url = require('url');