Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

28 строки
843 B

  1. // const { createServer } = require("http");
  2. // const { parse } = require("url");
  3. // const next = require("next");
  4. const cli = require("next/dist/cli/next-start");
  5. // const dev = process.env.NODE_ENV !== "production";
  6. // const app = next({ dev });
  7. // const handle = app.getRequestHandler();
  8. require("dotenv").config();
  9. const port = process.env.PORT || "14009";
  10. // app.prepare().then(() => {
  11. // createServer((req, res) => {
  12. // const parsedUrl = parse(req.url, true);
  13. // const { pathname, query } = parsedUrl;
  14. // // if (!pathname.includes("_next")) {
  15. // console.log(pathname);
  16. // // app.render(req, res, pathname, query);
  17. // // }
  18. // app.render(req, res, "/abous_us/aboutus", query);
  19. // }).listen(port, (err) => {
  20. // if (err) throw err;
  21. // console.log(`Ready on port ${port}`);
  22. // });
  23. // });
  24. cli.nextStart(["-p", port]);