mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 05:23:17 +08:00
fix: patched issues with static
This commit is contained in:
@@ -97,7 +97,7 @@ function setupViews(options: AppOptions) {
|
||||
const { parent } = options;
|
||||
|
||||
// configure the default views directory.
|
||||
const views = path.join(__dirname, "..", "..", "..", "static");
|
||||
const views = path.join(__dirname, "..", "..", "..", "..", "dist", "static");
|
||||
parent.set("views", views);
|
||||
|
||||
// Reconfigure nunjucks.
|
||||
|
||||
@@ -2,7 +2,7 @@ import serveStatic from "express-static-gzip";
|
||||
import path from "path";
|
||||
|
||||
const staticPath = path.resolve(
|
||||
path.join(__dirname, "..", "..", "..", "..", "static", "assets")
|
||||
path.join(__dirname, "..", "..", "..", "..", "..", "dist", "static", "assets")
|
||||
);
|
||||
|
||||
export default serveStatic(staticPath, { index: false });
|
||||
|
||||
Reference in New Issue
Block a user