diff --git a/src/help/functions.publish.help.ts b/src/help/functions.publish.help.ts index ef26f3c3..cc0f7e47 100644 --- a/src/help/functions.publish.help.ts +++ b/src/help/functions.publish.help.ts @@ -4,7 +4,8 @@ import { NOTE_KEEP_STAGED, OPTION_HELP, OPTION_KEEP_STAGED, - OPTION_SRC + OPTION_SRC, + OPTIONS_HELP } from '../constants/help.constants'; import {helpOutput} from './common.help'; import {TITLE} from './help'; @@ -15,6 +16,7 @@ Options: ${yellow('--no-apply')} Submit the release as a change but do not apply it yet. ${OPTION_KEEP_STAGED} ${OPTION_SRC} + ${OPTIONS_HELP} ${OPTION_HELP} Notes: diff --git a/src/services/functions/publish.services.ts b/src/services/functions/publish.services.ts index 3511d548..55756596 100644 --- a/src/services/functions/publish.services.ts +++ b/src/services/functions/publish.services.ts @@ -12,6 +12,7 @@ import {red} from 'kleur'; import {dirname} from 'node:path'; import {SATELLITE_OUTPUT} from '../../constants/dev.constants'; import {CDN_RELEASES_FULL_PATH} from '../../constants/functions.constants'; +import {ENV} from '../../env'; import type {SatelliteParametersWithId} from '../../types/satellite'; import {assertConfigAndLoadSatelliteContext} from '../../utils/satellite.utils'; import {readWasmFileMetadata} from '../../utils/wasm.utils'; @@ -108,7 +109,7 @@ const publishWasmWithProposal = async ({ // @ts-expect-error type incompatibility NodeJS vs bundle data, fullPath: storagePath ?? fullPath, - headers, + headers: [...headers, ['Access-Control-Allow-Origin', ENV.console.urls.root]], token: crypto.randomUUID(), description: `change=${proposalId};version=${version}` }