diff --git a/fly.toml b/fly.toml index 83e24e4..da5ab34 100644 --- a/fly.toml +++ b/fly.toml @@ -12,9 +12,8 @@ primary_region = 'waw' [http_service] internal_port = 3000 force_https = true - auto_stop_machines = true - auto_start_machines = true - min_machines_running = 1 + auto_stop_machines = false + auto_start_machines = false processes = ['app'] [[vm]] diff --git a/packages/blog/src/projects/handlers/projects.handler.tsx b/packages/blog/src/projects/handlers/projects.handler.tsx index dad354b..dd64d14 100644 --- a/packages/blog/src/projects/handlers/projects.handler.tsx +++ b/packages/blog/src/projects/handlers/projects.handler.tsx @@ -1,5 +1,5 @@ import type { FastifyPluginAsync } from 'fastify'; -import { groupBy, orderBy } from 'lodash-es'; +import { groupBy } from 'lodash-es'; import { contentType, statusCode } from '../../http/index.js'; import { DefaultLayout, render } from '../../ui/index.js'; import { ProjectTiledList } from '../components/ProjectTiledList.js'; @@ -27,10 +27,9 @@ export const projectsHandler: FastifyPluginAsync = async function (app) { (project) => project.matter.status, ); - const statuses = orderBy( - Object.keys(projectsByStatus) as ProjectStatus[], - (status) => projectStatusOrder[status], - ); + const statuses = ( + Object.keys(projectsByStatus) as ProjectStatus[] + ).toSorted((a, b) => projectStatusOrder[a] - projectStatusOrder[b]); const changelogsByProject = groupBy(allChangelogs, (changelog) => getProjectIdFromChangelogPath(changelog.path),