mirror of
https://github.com/andatoshiki/toshiki-home-nuxt3.git
synced 2026-06-05 22:46:32 +00:00
chore: update header meta homepage description with bio from twitter & lint nelify function code sources
This commit is contained in:
parent
51ad078253
commit
c079aa65aa
@ -3,7 +3,7 @@ import { NuxtOptionsHead } from '@nuxt/types/config/head'
|
|||||||
/* Define constants */
|
/* Define constants */
|
||||||
const image = 'https://r2.toshiki.dev/image/toshiki-home-nuxt/cfa307e8b18141a09cd2f9533b6fd7c0.png'
|
const image = 'https://r2.toshiki.dev/image/toshiki-home-nuxt/cfa307e8b18141a09cd2f9533b6fd7c0.png'
|
||||||
const description =
|
const description =
|
||||||
'Young JavaScript developer from Arizona, interested in languages, gaming, and programming, trying to improve his JavaScript skills!'
|
'Former full time INTP & current INTJ & part time ISTP whom is caffein overdosed hyperboosted by Monster meanwhile an egoistic capitalist that overthinks ;)'
|
||||||
|
|
||||||
const Head: NuxtOptionsHead = {
|
const Head: NuxtOptionsHead = {
|
||||||
title: 'toshiki.dev',
|
title: 'toshiki.dev',
|
||||||
|
|||||||
@ -23,11 +23,15 @@ const handler: Handler = async () => {
|
|||||||
|
|
||||||
// Origin for CORS
|
// Origin for CORS
|
||||||
const origin = process.env.NODE_ENV === 'production' ? 'https://toshiki.dev' : 'http://localhost:3000'
|
const origin = process.env.NODE_ENV === 'production' ? 'https://toshiki.dev' : 'http://localhost:3000'
|
||||||
const allowedOrigins = ['https://toshiki.dev', 'http://localhost:3000', 'https://toshiki-home-nuxt3.netlify.app/']
|
const allowedOrigins = [
|
||||||
|
'https://toshiki.dev',
|
||||||
|
'http://localhost:3000',
|
||||||
|
'https://toshiki-home-nuxt3.netlify.app/'
|
||||||
|
]
|
||||||
if (!allowedOrigins.includes(origin)) {
|
if (!allowedOrigins.includes(origin)) {
|
||||||
return {
|
return {
|
||||||
statusCode: 403,
|
statusCode: 403,
|
||||||
body: 'Forbidden'
|
body: 'Forbidden'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user