mirror of
https://github.com/wassname/talk.git
synced 2026-07-29 11:28:24 +08:00
9 lines
249 B
TypeScript
9 lines
249 B
TypeScript
import serveStatic from "express-static-gzip";
|
|
import path from "path";
|
|
|
|
const staticPath = path.resolve(
|
|
path.join(__dirname, "..", "..", "..", "..", "..", "dist", "static", "assets")
|
|
);
|
|
|
|
export default serveStatic(staticPath, { index: false });
|