Help with Xenial Migration for Svelte Kit App

Hi, I’ve got a svelte kit app and I get this warning:

After November 15, 2022, the Xenial build image will not be supported. To avoid build failure, select another build image. Read the migration guide.

I’ve looked through Please read! End of support for Xenial build image: Everything you need to know and Build configuration overview | Netlify Docs and am still a little confused.

My netlify.toml is

[build]
  command = "npm run build"
  publish = "build/publish/"
  functions = "build/functions/"
  environment = { NODE_VERSION = "14.17.5" }

[dev]
 command = "svelte-kit dev"
 
[functions]
  directory = "netlify/functions"
  node_bundler = "esbuild"

and these are my dependencies:

	"devDependencies": {
		"@sveltejs/adapter-netlify": "1.0.0-next.49",
		"@sveltejs/kit": "1.0.0-next.291",
		"autoprefixer": "^10.4.2",
		"eslint": "^7.22.0",
		"eslint-config-prettier": "^8.1.0",
		"eslint-plugin-import": "^2.23.4",
		"eslint-plugin-prettier": "^4.0.0",
		"eslint-plugin-svelte3": "^3.2.0",
		"postcss": "^8.4.5",
		"postcss-load-config": "^3.1.0",
		"prettier": "^2.5.1",
		"prettier-plugin-svelte": "^2.5.1",
		"pwa-asset-generator": "^4.1.1",
		"svelte": "^3.43.1",
		"svelte-preprocess": "^4.9.8"
	},
	"type": "module",
	"dependencies": {
		"dayjs": "^1.10.7",
		"lodash": "^4.17.21",
		"lz-string": "^1.4.4",
		"screenfull": "^5.1.0",
		"tailwindcss": "^3.0.13"
	}

Thanks in advance : )

Hi @justingolden21

What information about migrating are you in need of specifically?

1 Like

Echoing @coelmay, please let us know what questions we can answer for you. This is our current document that we are directing folks to. If anything is unclear, we can address it here and then also add it to the End of Support thread.

Thanks

1 Like

Thanks for the quick replies. I’m not sure how to migrate / what steps to take. I will be upgrading svelte kit shortly, so maybe that will just magically solve this. Will get back to you.

Selection of the build image is outlined in the documentation linked in your original post @justingolden21

To change the build image for a site, go to Site settings > Build & deploy > Continuous Deployment > Build image selection, and select the build image you would like to use.

Updating Svelte Kit won’t change the build image. That will only change the version of Svelte Kit used to build your site.