added robots.txt to redirect + update fly vm memory

main
TZGyn 1 year ago
parent 469c06661d
commit 294a237a2f
Signed by: TZGyn
GPG Key ID: 122EAF77AE81FD4A

@ -7,6 +7,7 @@ COPY bun.lockb .
RUN bun install --production RUN bun install --production
COPY public public
COPY src src COPY src src
COPY tsconfig.json . COPY tsconfig.json .

@ -17,6 +17,6 @@ primary_region = 'dfw'
processes = ['app'] processes = ['app']
[[vm]] [[vm]]
memory = '1gb' memory = '512'
cpu_kind = 'shared' cpu_kind = 'shared'
cpus = 1 cpus = 1

@ -0,0 +1,3 @@
User-agent: *
Allow: /$
Disallow: /

@ -13,6 +13,7 @@ const app = new Elysia().use(cors())
app.get('/', ({ set }) => (set.redirect = fallback_url + '/landing')) app.get('/', ({ set }) => (set.redirect = fallback_url + '/landing'))
app.get('/invalid', () => 'Invalid Shortener') app.get('/invalid', () => 'Invalid Shortener')
app.get('/robots.txt', () => Bun.file('public/robots.txt'))
app.get( app.get(
'/:shortenerCode', '/:shortenerCode',

Loading…
Cancel
Save