ํด์๋ฅผ ์์ ๋ ์ต์
build: {
rollupOptions: {
output: {
entryFileNames: 'assets/[name].js',
chunkFileNames: 'assets/[name].js',
assetFileNames: 'assets/[name].[ext]'
}
}
}
chunk : ๋ธ๋ญ์ ์ผ๋ถ๋ถ
netlify / render.ts
<!-- ์ค์ ๋ฐฐํฌ๋์๋ ์ฌ์ฉ-->
<script type="module" crossorigin src="/assets/index.js"></script>
<link rel="stylesheet" href="/assets/index.css">
<!-- ๊ฐ๋ฐํ ๋๋ง ์ฌ์ฉ -->
<script defer type="module" src="/src/main.ts"></script>
edge function - ๋ด๊ณผ ์ฌ๋์ ๊ตฌ๋ณํด์ฃผ๋ ํจ์
- ์๋์ผ๋ก ๊ฐ๊น์ด ๋ฆฌ์ ์ผ๋ก ์ฐ๊ฒฐํด์ฃผ๋ ํจ์
- fetch ํจ์ ๋ด์ฅ
- ๊ฐ๋ฒผ์์ด ํน์ง
deno
- node JS ์ ๋ค์ ์ธ๋
(node ํ๊ฒฝ์์ ์ฌ์ฉํ๋ npm ์ฌ์ฉํ์ง ์์)
- install ํ์ง ์๊ณ cdn ์ผ๋ก๋ง ์ฌ์ฉ
๋ฌด์กฐ๊ฑด ์๋ฐ์ดํ!!!!
[[edge_functions]]
path = "/workspaces/*"
function = "workspaces"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
๋ฐ์ํ
'๐ TIL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[220715] Node js (0) | 2022.07.15 |
---|---|
[220714] vercel ๋ก ๋ฐฐํฌํ๊ธฐ (0) | 2022.07.14 |
[220711] ๋ทฐ์คํฐ๋ (0) | 2022.07.11 |
[220708] Firebase deploy (0) | 2022.07.08 |
[220705] firebase-3 (0) | 2022.07.05 |