Skip to content

Commit 10971a9

Browse files
fix: slash
1 parent 31de78a commit 10971a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/generate.services.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const populate = async ({gitHubAction, ...rest}: PopulateInput) => {
5555
type PopulateInputFn = Omit<PopulateInput, 'gitHubAction'>;
5656

5757
const populateFromCDN = async ({where, template, localDevelopment}: PopulateInputFn) => {
58-
const templatePath = getRelativeTemplatePath(template);
58+
const templatePath = getRelativeTemplatePath(template).replace(/\\/g, '/');
5959

6060
console.log("DEBUG ----> ", templatePath);
6161

@@ -65,7 +65,7 @@ const populateFromCDN = async ({where, template, localDevelopment}: PopulateInpu
6565
hostname,
6666
path: `/${templatePath}.tar.gz`,
6767
headers: {
68-
'Accept-Encoding': 'identity'
68+
'Accept-Encoding': 'gzip, deflate, br'
6969
}
7070
});
7171

0 commit comments

Comments
 (0)