Server-side dynamic manifest generation

Hi everyone, I want to build an api to obtain a dynamic manifest.json from my server, I tried it with netlify functions but it is not allowed to put periods in the name of the function “manifest.json” only alphanumeric data is allowed.
I want my manifest.json to be able to be called when running my example site https://mysite.com/manifest.json

from my server I have the api:
app.get(‘/manifest.json’, async function(req, res){
}

How can I do this with Netlify?
thanks.

@rolvicdata You should be able to call the function anything, then use a rewrite within your redirects to alias it.

Something like:

/manifest.json    /.netlify/functions/<function_name>    200
1 Like

Thanks @nathanmartin, I had not thought of it :grimacing:, this worked perfectly
thanks.