diff options
author | 2021-09-06 23:13:22 +0200 | |
---|---|---|
committer | 2021-09-06 23:13:22 +0200 | |
commit | 569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a (patch) | |
tree | 8d1cb94a56d60b9d726222277b7516fc59895613 /app.js | |
parent | 275bd1d0a9aea90696c145cf992d522a0d6b0aa8 (diff) | |
download | my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.tar.gz my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.tar.bz2 my_apps-569bdb8c5d7538fa0ea8a99ff2f8376f7cbfa51a.zip |
added stadard linter
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ const { createServer } = require('http') -const { parse } = require('url') +const { URL } = require('url') const next = require('next') const dev = process.env.NODE_ENV !== 'production' @@ -10,7 +10,7 @@ app.prepare().then(() => { createServer((req, res) => { // Be sure to pass `true` as the second argument to `url.parse`. // This tells it to parse the query portion of the URL. - const parsedUrl = parse(req.url, true) + const parsedUrl = new URL(req.url, true) const { pathname, query } = parsedUrl if (pathname === '/a') { |