Skip to content

Commit eb9628d

Browse files
committed
chore: remove vacation page
1 parent 4ed4254 commit eb9628d

5 files changed

Lines changed: 37 additions & 316 deletions

File tree

app/pages/recharging.vue

Lines changed: 0 additions & 257 deletions
This file was deleted.

i18n/locales/en.json

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,39 +1198,5 @@
11981198
"p1": "If you encounter an accessibility barrier on {app}, please let us know by opening an issue on our {link}. We take these reports seriously and will do our best to address them.",
11991199
"link": "GitHub repository"
12001200
}
1201-
},
1202-
"vacations": {
1203-
"title": "on vacation",
1204-
"meta_description": "The npmx team was recharging. Discord reopened after a week.",
1205-
"heading": "recharging",
1206-
"subtitle": "we were building npmx at a pace that was costing {some} of us sleep. we didn't want that to be the norm! so we took a week off. together.",
1207-
"illustration_alt": "a single row of cosy icons",
1208-
"poke_log": "Poke the campfire",
1209-
"what": {
1210-
"title": "what happened",
1211-
"p1": "discord was closed {dates}.",
1212-
"dates": "February 14 – 21",
1213-
"p2": "all invite links were gone and channels were locked – except {garden}, which stayed open for folks who wanted to keep hanging out.",
1214-
"garden": "#garden"
1215-
},
1216-
"meantime": {
1217-
"title": "in the meantime",
1218-
"p1": "{site} and {repo} stayed open – people still dug in, filed some issues, opened a few PRs, but mainly everyone spent time somewhere near a cosy fireplace.",
1219-
"repo_link": "the repo"
1220-
},
1221-
"return": {
1222-
"title": "we came back!",
1223-
"p1": "we came back recharged and ready for the final push to March 3rd. {social} for updates.",
1224-
"social_link": "follow us on Bluesky"
1225-
},
1226-
"stats": {
1227-
"contributors": "Contributors",
1228-
"commits": "Commits",
1229-
"pr": "PRs Merged",
1230-
"subtitle": {
1231-
"some": "some",
1232-
"all": "all"
1233-
}
1234-
}
12351201
}
12361202
}

lunaria/prepare-json-files.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ async function loadLocaleSourceJson<T = unknown>(name: string): Promise<T> {
6868
const rawJson = JSON.parse(await fs.readFile(path.resolve(`${localesFolder}/${name}`), 'utf8'))
6969
// Exclude $schema since it isn't useful in generated files and the relative
7070

71-
// TODO: removing vacations entry key for temporal recharging page
72-
// would be wrong anyway
73-
const { $schema: _, vacations: __, ...rest } = rawJson
71+
const { $schema: _, ...rest } = rawJson
7472
return rest
7573
}
7674

nuxt.config.ts

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,22 @@ export default defineNuxtConfig({
114114
allowQuery: ['mode', 'filterOldVersions', 'filterThreshold'],
115115
},
116116
},
117-
'/api/registry/docs/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
118-
'/api/registry/file/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
119-
'/api/registry/provenance/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
120-
'/api/registry/files/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
117+
'/api/registry/docs/**': {
118+
isr: true,
119+
cache: { maxAge: 365 * 24 * 60 * 60 },
120+
},
121+
'/api/registry/file/**': {
122+
isr: true,
123+
cache: { maxAge: 365 * 24 * 60 * 60 },
124+
},
125+
'/api/registry/provenance/**': {
126+
isr: true,
127+
cache: { maxAge: 365 * 24 * 60 * 60 },
128+
},
129+
'/api/registry/files/**': {
130+
isr: true,
131+
cache: { maxAge: 365 * 24 * 60 * 60 },
132+
},
121133
'/api/registry/package-meta/**': { isr: 300 },
122134
'/:pkg/.well-known/skills/**': { isr: 3600 },
123135
'/:scope/:pkg/.well-known/skills/**': { isr: 3600 },
@@ -139,9 +151,13 @@ export default defineNuxtConfig({
139151
// pages
140152
'/package/**': getISRConfig(60, { fallback: 'html' }),
141153
'/package/:name/_payload.json': getISRConfig(60, { fallback: 'json' }),
142-
'/package/:name/v/:version/_payload.json': getISRConfig(60, { fallback: 'json' }),
154+
'/package/:name/v/:version/_payload.json': getISRConfig(60, {
155+
fallback: 'json',
156+
}),
143157
'/package/:org/:name/_payload.json': getISRConfig(60, { fallback: 'json' }),
144-
'/package/:org/:name/v/:version/_payload.json': getISRConfig(60, { fallback: 'json' }),
158+
'/package/:org/:name/v/:version/_payload.json': getISRConfig(60, {
159+
fallback: 'json',
160+
}),
145161
// infinite cache (versioned - doesn't change)
146162
'/package-code/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
147163
'/package-docs/**': { isr: true, cache: { maxAge: 365 * 24 * 60 * 60 } },
@@ -153,7 +169,6 @@ export default defineNuxtConfig({
153169
'/privacy': { prerender: true },
154170
'/search': { isr: false, cache: false }, // never cache
155171
'/settings': { prerender: true },
156-
'/recharging': { prerender: true },
157172
// proxy for insights
158173
'/_v/script.js': { proxy: 'https://npmx.dev/_vercel/insights/script.js' },
159174
'/_v/view': { proxy: 'https://npmx.dev/_vercel/insights/view' },

0 commit comments

Comments
 (0)