hello great team,
i am trying to deploy an angular universal (Server side rendering) to netlify functions,
the function works fine and render the app, but i have some issues with the redirects, witch:
- if i redirect all traffic to the function, i can’t exclude assets files for example in my redirect file i have this line.
/* /.netlify/functions/main 200
witch will redirect every call to the server to render the app and return the output.
before that i want to exclude assets files published on the main site, i added this line before everything else inside the redirects file but without any success:
/*.js /:splat 200!

full redirects file:
/*.js /:splat 200!
/* /.netlify/functions/main 200
netlify function:
/**
* Main function to render angular app
* @type {((application: ServerlessHttp.Application, options?: any) => ServerlessHttp.Handler) | ServerlessHttp}
*/
const serverless = require('serverless-http');
const server = require("../dist/ui/server/main");
module.exports = server.app;
module.exports.handler = serverless(server.app);