nextjs-server-modules
Advanced tools
Comparing version 1.6.0 to 1.6.1
#!/usr/bin/env node | ||
require("esbuild-runner/register") | ||
require("./lib/cli.js").default() | ||
require("./lib/cli.js").default().catch(error => { | ||
console.error(error) | ||
process.exit(1) | ||
}) |
@@ -13,6 +13,6 @@ const glob = require("glob-promise") | ||
const staticFiles = (await glob("**/*", { cwd: staticDir })) | ||
const staticFiles = (await glob("**/*", { cwd: staticDir, nodir: true })) | ||
.map((fp) => `static/${fp}`) | ||
.concat( | ||
(await glob("**/*", { cwd: pagesDir })) | ||
(await glob("**/*", { cwd: pagesDir, nodir: true })) | ||
.filter((fp) => !fp.startsWith("api")) | ||
@@ -19,0 +19,0 @@ .filter((fp) => !fp.endsWith(".nft.json")) |
import mime from "mime-types" | ||
export default (ext, content) => (req, res) => { | ||
const contentType = mime.contentType(ext) | ||
const contentType = mime.lookup(ext) | ||
if (contentType) { | ||
@@ -6,0 +6,0 @@ res.setHeader("Content-Type", contentType) |
{ | ||
"name": "nextjs-server-modules", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"main": "bin.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:hello-seam/nextjs-server-modules.git", |
59009
1723