Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- mssql
- 다이어트
- 함수
- 리눅스
- 라즈베리파이
- PER
- sqlite
- urllib
- Excel
- 유니티
- IOS
- 맛집
- javascript
- Linux
- Unity
- ASP
- PyQt5
- pandas
- MS-SQL
- swift
- flutter
- GIT
- port
- 날짜
- ubuntu
- PyQt
- tensorflow
- node.js
- MySQL
- python
Archives
아미(아름다운미소)
sveltekit 프로젝트 생성 본문
sveltekit 프로젝트 생성
npx sv create my-sveltekit-app
cd my-sveltekit-app
adapter-node 설치(build폴더 생성)
npm install -D @sveltejs/adapter-node
svelte.config.js 수정
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({ out: 'build' }) // build 폴더가 생성되도록 설정
}
};
export default config;
npm run build
실행
npm run dev
Comments