Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow overriding platform.apiRuntime #144

Merged
merged 3 commits into from
Jul 2, 2023
Merged

feat: allow overriding platform.apiRuntime #144

merged 3 commits into from
Jul 2, 2023

Conversation

geoffrich
Copy link
Owner

@geoffrich geoffrich commented Jul 2, 2023

Closes #48

Instead of introducing a separate config option to set a custom node version, this PR allows setting platform.apiRuntime via customStaticWebAppConfig

e.g.

// svelte.config.js
import adapter from 'svelte-adapter-azure-swa';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	kit: {
		adapter: adapter({
			customStaticWebAppConfig: {
				platform: {
					apiRuntime: 'node:18'
				}
			}
		})
	}
};

export default config;

@github-actions
Copy link
Contributor

github-actions bot commented Jul 2, 2023

Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-desert-00b80111e-144.westus2.2.azurestaticapps.net

@geoffrich geoffrich merged commit fd8241a into main Jul 2, 2023
@geoffrich geoffrich deleted the issue-48 branch July 2, 2023 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamically determine node version
1 participant