mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-22 13:30:11 +00:00
fix(cli): ⚡ refactor
This commit is contained in:
23
packages/portal/server/@qwik-city-static-paths.js
Normal file
23
packages/portal/server/@qwik-city-static-paths.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const staticPaths = new Set([
|
||||
'/',
|
||||
'/favicon.svg',
|
||||
'/manifest.json',
|
||||
'/q-manifest.json',
|
||||
'/robots.txt',
|
||||
'/service-worker.js',
|
||||
'/sitemap.xml',
|
||||
'/water-mark.png',
|
||||
])
|
||||
function isStaticPath(p) {
|
||||
if (p.startsWith('/build/')) {
|
||||
return true
|
||||
}
|
||||
if (p.startsWith('/assets/')) {
|
||||
return true
|
||||
}
|
||||
if (staticPaths.has(p)) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
export { isStaticPath }
|
||||
Reference in New Issue
Block a user