Skip to content

v243

Choose a tag to compare

@peterpeterparker peterpeterparker released this 12 Apr 18:02
· 11 commits to main since this release

Summary

With this release, the goal is to initiate bringing some consistency into the juno.config by grouping deployment-related options under a dedicated hosting key within the satellite configuration.

Note

This is a backwards-compatible change. Existing configurations continue to work as before.

We used to have

export default defineConfig({
	satellite: {
		ids: {
			development: 'atbka-rp777-77775-aaaaq-cai',
			production: 'ck4tp-3iaaa-aaaal-ab7da-cai'
		},
		source: 'build',
		predeploy: ['npm run build'],
		precompress: [
			{
				pattern: '**/*.+(js|mjs|css)',
				algorithm: 'brotli',
				mode: 'replace'
			},
			{
				pattern: '**/*.html',
				algorithm: 'brotli',
				mode: 'both'
			}
		],
		assertions: {
			heapMemory: 800_000_000n
		},
		collections
	}
});

And the new structure will be

export default defineConfig({
	satellite: {
		ids: {
			development: 'atbka-rp777-77775-aaaaq-cai',
			production: 'ck4tp-3iaaa-aaaal-ab7da-cai'
		},
		hosting: {
			source: 'build',
			predeploy: ['npm run build'],
			precompress: [
				{
					pattern: '**/*.+(js|mjs|css)',
					algorithm: 'brotli',
					mode: 'replace'
				},
				{
					pattern: '**/*.html',
					algorithm: 'brotli',
					mode: 'both'
				}
			]
		},
		assertions: {
			heapMemory: 800_000_000n
		},
		collections
	}
});

What's Changed

Full Changelog: v242...v243