<@U01JVDKASAC> I think there is a small bug with t...
# sst
d
@Frank I think there is a small bug with the debugger incorrectly not detecting an infrastructure change. I changed the
copyFiles
from
hit save and it said no changes detected.
Copy code
new sst.Api(scope, 'AppAPI', {
      defaultFunctionProps: {
        bundle: {
          copyFiles: [{ from: '../../../contentful-app-frontend', to: '.' }],
        },
      },
      routes: {
        'ANY /': 'lib/constructs/ContentfulApp/lambda.handler',
        'ANY /{proxy+}': 'lib/constructs/ContentfulApp/lambda.handler',
      },
    })
t
I think this happens because in sst start mode, copyFiles doesn't do anything
d
@thdxr does it not? should it not?
t
It currently doesn't because your filesystem is accessible directly when running in sst start so things usually "just work" and break when deploying to production because the files are missing
which is why copyFiles was added
d
hmmm…. thanks…. need to noodle that one
t
If the paths are different locally vs in the production bundle I'll pass an env file specifying where to find the static content
d
is there a way to exclude files from a copyFiles?
t
There isn't currently but maybe something we can add