mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add serverless permalinking
This commit is contained in:
parent
93db24e5a3
commit
a4c999048f
1 changed files with 7 additions and 1 deletions
|
|
@ -123,6 +123,7 @@ export class AppTemplate {
|
||||||
data: 'eleventy-endpoints',
|
data: 'eleventy-endpoints',
|
||||||
size: 1,
|
size: 1,
|
||||||
alias: 'app',
|
alias: 'app',
|
||||||
|
serverless: 'eleventy.app.slug',
|
||||||
|
|
||||||
before: function( data ) {
|
before: function( data ) {
|
||||||
return data.filter( entry => {
|
return data.filter( entry => {
|
||||||
|
|
@ -149,7 +150,12 @@ export class AppTemplate {
|
||||||
|
|
||||||
permalink: ({ app }) => {
|
permalink: ({ app }) => {
|
||||||
// console.log('payload', app.payload)
|
// console.log('payload', app.payload)
|
||||||
return app.route.substring(1) + '/'
|
return {
|
||||||
|
'build': app.route.substring(1) + '/',
|
||||||
|
'eleventy-builder': '/app/:slug/'//app.route.substring(1) + '/'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue