Added middleware for docker.
This commit is contained in:
1 parent
3eabe9b958
commit
ac8d8bbd1e
4 files changed
+59
-1
No files matched your search
@@ -44,6 +44,17 @@ if (process.env.COLLECT_API_ENDPOINT) {
|
||||
});
|
||||
}
|
||||
|
||||
if (process.env.TRACKER_SCRIPT_NAME) {
|
||||
const match = process.env.TRACKER_SCRIPT_NAME?.match(/\/?(\w+)(\.js)?/);
|
||||
|
||||
if (match) {
|
||||
rewrites.push({
|
||||
source: `/${match[0]}.js`,
|
||||
destination: '/script.js',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const redirects = [];
|
||||
|
||||
if (process.env.CLOUD_MODE) {
|
||||
|
||||
Reference in new issue
Block a user