Skip to content

Commit

Permalink
use CDN key from grindor completed API
Browse files Browse the repository at this point in the history
  • Loading branch information
ashokrdkr committed Jul 5, 2024
1 parent 2093cda commit 7de2685
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/helper/serve.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export async function startServer({ domain, host, isSSR, port }) {
'fdk-cli-dev-files',
User.current_user._id,
)
).start.cdn.url;
).complete.cdn.url;
} else {
jetfireUrl.searchParams.set('__csr', 'true');
}
Expand Down
8 changes: 4 additions & 4 deletions src/lib/Theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ export default class Theme {
path.join(process.cwd(), Theme.BUILD_FOLDER, commonJS),
'application-theme-assets',
);
const commonJsUrl = commonJsUrlRes.start.cdn.url;
const commonJsUrl = commonJsUrlRes.complete.cdn.url;

Logger.info('Uploading umdJS');
const umdMinAssets = glob.sync(
Expand Down Expand Up @@ -1921,9 +1921,9 @@ export default class Theme {
});
const cssUrls = await Promise.all(cssPromisesArr);
return [
cssUrls.map((res) => res.start.cdn.url),
cssUrls.map((res) => res.complete.cdn.url),
commonJsUrl,
umdJsUrls.map((res) => res.start.cdn.url),
umdJsUrls.map((res) => res.complete.cdn.url),
];
} catch (err) {
throw new CommandError(
Expand Down Expand Up @@ -2528,7 +2528,7 @@ export default class Theme {
zipFilePath,
'application-theme-src',
);
return res.start.cdn.url;
return res.complete.cdn.url;
} catch (err) {
throw new CommandError(
err.message || `Failed to upload src folder`,
Expand Down

0 comments on commit 7de2685

Please sign in to comment.