diff --git a/other/litefs.yml b/other/litefs.yml index d201062..ff65644 100644 --- a/other/litefs.yml +++ b/other/litefs.yml @@ -26,7 +26,7 @@ lease: consul: url: '${FLY_CONSUL_URL}' - key: 'epic-stack-litefs/${FLY_APP_NAME}' + key: '${FLY_APP_NAME}/primary' exec: - cmd: node ./other/setup-swap.js diff --git a/other/setup-swap.js b/other/setup-swap.js index 6e70ec3..860fd37 100644 --- a/other/setup-swap.js +++ b/other/setup-swap.js @@ -1,7 +1,7 @@ #!/usr/bin/env node import { writeFile } from 'node:fs/promises' -import { $ } from 'execa' +import $ from 'execa' console.log('setting up swapfile...') await $`fallocate -l 512M /swapfile` @@ -10,4 +10,5 @@ await $`mkswap /swapfile` await writeFile('/proc/sys/vm/swappiness', '10') await $`swapon /swapfile` await writeFile('/proc/sys/vm/overcommit_memory', '1') -console.log('swapfile setup complete') \ No newline at end of file +console.log( 'swapfile setup complete' ) + diff --git a/remix.config.ts b/remix.config.ts index 5439553..6ae15b2 100644 --- a/remix.config.ts +++ b/remix.config.ts @@ -1,7 +1,9 @@ /** @type {import('@remix-run/dev').AppConfig} */ module.exports = { + cacheDirectory: './node_modules/.cache/remix', ignoredRouteFiles: ["**/.*"], tailwind: true, +serverPlatform: "node", serverModuleFormat: "esm", serverDependenciesToBundle: [/^remix-utils.*/,/^remix-auth-totp.*/], // appDirectory: "app", diff --git a/tsconfig.json b/tsconfig.json index 684b014..810f656 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,6 +9,7 @@ "moduleResolution": "Bundler", "resolveJsonModule": true, "target": "ES2022", + "module": "ES2022", "strict": true, "allowJs": true, "forceConsistentCasingInFileNames": true, @@ -16,7 +17,7 @@ "paths": { "~/*": ["./app/*"] }, - +"allowImportingTsExtensions": true, // Remix takes care of building everything in `remix build`. "noEmit": true }