SvelteKit을 Netlify에 배포하기

  1. my-app 초기화

2. netlify.toml 추가하기

3. netlify 어댑터 설치

4. svelte.config.js 수정

5. github repo 생성

github에서 repo 생성 -> 코드 commit및 push -> netlify에서 git repo연결

6. netlify 배포

배포시 환경이 안맞을 때, 아래의 경로에서 추가하시면 됩니다.

Site settings > Build & deploy > Environment > Environment variables.

참조) https://docs.netlify.com/configure-builds/environment-variables/

node 버전 때문에 빌드에러가 나서 환경 변수를 작성함.

--

--

iOS app developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store