forked from cms/tibi-svelte-starter
init
This commit is contained in:
17
api/hooks/config.js
Normal file
17
api/hooks/config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
module.exports = {
|
||||
projectName: "__PROJECT_NAME__",
|
||||
operatorEmail: "__OPERATOR_EMAIL_",
|
||||
|
||||
apiBase: "http://localhost:8080/api/v1/_/__NAMESPACE__/",
|
||||
frontendBase: "http://localhost:5501/",
|
||||
|
||||
publicToken: "__PUBLIC_TOKEN__",
|
||||
ssrToken: "__SSR_TOKEN__",
|
||||
|
||||
ssrValidatePath: function(path) {
|
||||
// TODO validate if path ssr rendering is ok, -1 = NOTFOUND, 0 = NO SSR, 1 = SSR
|
||||
// pe. use context.readCollection("product", {filter: {path: path}}) ... to validate dynamic urls
|
||||
|
||||
return path.match(/^\/(home|service)\/?$/)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user