Skip to content

Commit 6f123f3

Browse files
committed
add introduction, fix grammar, add tunnel script and preview host whitelist
1 parent 0e988c7 commit 6f123f3

File tree

5 files changed

+78
-57
lines changed

5 files changed

+78
-57
lines changed

astro.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@ export default defineConfig({
4242
build: {
4343
sourcemap: false,
4444
},
45+
server: {
46+
// applies only to Vite dev server
47+
allowedHosts: ['localhost', 'preview.amd1.nemanjamitic.com'],
48+
},
4549
},
4650
});

docs/working-notes/todo4.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,22 @@ flex flex-col and flex-grow until (including) client component to prevent layout
156156
-----------------
157157
// try pixelated blur
158158
style="image-rendering: pixelated;"
159+
-------
160+
// tunnel preview
161+
ssh -R *:1082:localhost:3000 amd1c
162+
https://preview.amd1.nemanjamitic.com
163+
164+
vite: {
165+
build: {
166+
sourcemap: false,
167+
},
168+
server: {
169+
allowedHosts: ['preview.amd1.nemanjamitic.com'],
170+
},
171+
},
172+
-------
173+
open external md links in new tab by default
174+
https://cosmicthemes.com/blog/astro-mdx-external-link/
159175
```
160176

161177

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"docker:push": "docker push nemanjamitic/nemanjam.github.io",
2828
"pi": "yarn build:nginx:pi && yarn deploy:nginx:pi",
2929
"nginx": "yarn build:nginx && yarn deploy:nginx",
30+
"tunnel": "ssh -R *:1082:localhost:3000 amd1c",
3031
"dc:up": "docker compose up --build --force-recreate -d"
3132
},
3233
"dependencies": {

0 commit comments

Comments
 (0)