localhost1 ㅇ NextJS server.js localhost https로 사용하기(개발 용) const { createServer } = require("https"); const { parse } = require("url"); const next = require("next"); const fs = require("fs"); const hostname = "localhost"; const port = 3000; const dev = process.env.NODE_ENV !== "production"; const app = next({ dev, hostname, port }); const handle = app.getRequestHandler(); const httpsOptions = { key: fs.readFileSync("localhost+1-key.pem"), cert: fs.readF.. 2023. 6. 1. 이전 1 다음