SSR Function crashing from deployed Workspace App #38986
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
I think there's a problem when deploying a SSR
gatsby
app from ayarn workspace
app, deployed tonetlify
: when deployed tonetlify
, the SSR engine crashes on initial invocation. here's the stacktrace:From what I can interpret in the stacktrace, the problem may be that
/var/task/.cache/data
is not found as the path is incorrect in that execution scope; I think it should be/var/task/apps/gatsby-test/.cache/data
(seesetupFsWrapper
in the trace).The SSR engine initialised fine in the supplied repo, when the
gatsby
instance was in the root of the repo ... however, in moving it into ayarn workspace
context, the above problem then appears. So It seems likegatsby
's SSR engine expects a "root" path throughout? Hopefully it's clear & the answer simple as the inability to deploy agatsby
site within workspaces is a problem ...Reproduction Link
https://github.com/amaccann/gatsby-renofi-test
Steps to Reproduce
netlify
app using the ☝️ example repo.netlify
Site & set Deploy settings to deploy; see below for the settings used in the failing context....
Expected Result
Site should render fine, specifically the paths using SSR engine's output (in this case, a simple public GQL I have access to)
Actual Result
When visting the deploy URL, the URL should simply report
Invocation failed
and a crash stacktrace as below ...Environment
The text was updated successfully, but these errors were encountered: