Closed sholtomaud closed 4 months ago
Can you please be more specific ? Have you installed the latest version 1.1.9 ? Can you give an example of what exactly is wrong? Or the stack trace with the error? It would help me to better understand the problem. Thanks.
Also this is always galling and a bad look for billionaires
55 packages are looking for funding run
npm fundfor details
Support those that support you
Can you have another look at the readme page ? The "Getting Started with CDK" section has been updated and the sample code provided should work fine. Here is the sample code provided:
import { RepositoryConnection, Hosting } from '@aws/cloudfront-hosting-toolkit';
...
const config = {
repoUrl: "https://github.com/USERNAME/REPOSITORY.git",
branchName: "main",
framework: "frameworkname"
};
const repositoryConnection = new RepositoryConnection(this, "MyRepositoryConnection", config)
new Hosting(this, "MyHosting", {
hostingConfiguration: config,
buildFilePath: "buildConfigurationFile.yml",
connectionArn: repositoryConnection.connectionArn,
cffSourceFilePath: "index.js"
});
fixed
Expected Behaviour
fixed
Current Behaviour
not fixed
Code snippet
Possible Solution
fix it
Steps to Reproduce
fix #3
try npm i