Build Your First Application with LWC OSS
Trailheadで新規作成したLWC OSSアプリをHerokuへデプロイしてみましょう。
進め方
Herokuへのデプロイ
web: npm run start:client
...
const app = express();
// app.use(helmet());
app.use(
// Sets all of the defaults, but overrides img-src and script-src
helmet.contentSecurityPolicy({
directives: {
...helmet.contentSecurityPolicy.getDefaultDirectives(),
'img-src': ["'self'", 'https://developer.salesforce.com'],
'connect-src': ["'self'", 'https://conference-lwc-app.herokuapp.com']
}
})
);
app.use(compression());
...最終更新