You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Webframeworks do not deploy nextjs ssr{projectId} function when using project aliases #5880
firebase use {alias}
firebase deploy --only hosting
[REQUIRED] Expected behavior
ssr{projectId} function should be deployed but it does not and see warning in deploy command:
hosting[...]: Unable to find a valid endpoint for function `ssr...`, but still including it in the config
I got it working when using default project. It stopped working after adding new project alias and trying to deploy the same website under different project. I am assuming that's the reason but maybe something got broken with latest versions of CLI?
I'm having a similar problem with Astro (so can't downgrade to 11.x). When trying to deploy, I get the following output after successfully building the static bits of my site:
i hosting: The following function(s) are pinned to site {projectId} and will be deployed as well: ssr{projectId}
=== Deploying to '{projectId}'...
i deploying functions, hosting
Error: No function matches given --only filters. Aborting deployment.
ELIFECYCLE Command failed with exit code 1.
I'm having a similar problem with Astro (so can't downgrade to 11.x). When trying to deploy, I get the following output after successfully building the static bits of my site:
i hosting: The following function(s) are pinned to site {projectId} and will be deployed as well: ssr{projectId}
=== Deploying to '{projectId}'...
i deploying functions, hosting
Error: No function matches given --only filters. Aborting deployment.
ELIFECYCLE Command failed with exit code 1.
I had the same problem (Error: No function matches given --only filters. Aborting deployment.).
Seems like it is happening when Firebase tries to create an SSR function ("under the hood") to do some work on the images in the project.
In my initial project, I had initially run the firebase init hosting command, thus I had no functions folder and no reference to it in my firebase.json file. That seems to be the root cause of the problem - seems like you need a functions folder, with some initial files and a reference to it:
Activity
pzmudzinski commentedon May 23, 2023
Update: downgrading firebase-tools back to 11.30.0 fixes the issue so this is definitely buggy there ❗
Snugug commentedon Jun 2, 2023
I'm having a similar problem with Astro (so can't downgrade to 11.x). When trying to deploy, I get the following output after successfully building the static bits of my site:
I'm using Astro hybrid rendering.
I'm not using project aliases.
rodydavis commentedon Jun 8, 2023
This is happening with astro standalone mode too:
123ndy commentedon Jun 24, 2023
I had the same problem (
Error: No function matches given --only filters. Aborting deployment.).Seems like it is happening when Firebase tries to create an SSR function ("under the hood") to do some work on the images in the project.
In my initial project, I had initially run the
firebase init hostingcommand, thus I had nofunctionsfolder and no reference to it in my firebase.json file. That seems to be the root cause of the problem - seems like you need a functions folder, with some initial files and a reference to it:I added the following to my firebase.json
And added a
functionsfolder with an emptyindex.jsfile and apackage.jsonfile with the following code:When running the Firebase deploy command (for example
firebase hosting:channel:deploy new-awesome-feature --expires 7dnow, it works.