remix-fastify

Fastify server request handler for Remix

MIT License

Downloads
21.2K
Stars
154
Committers
20

Bot releases are hidden (Show)

remix-fastify - @mcansh/[email protected] Latest Release

Published by mcansh 6 months ago

Patch Changes

  • a7fcb6d: allows you to customize the cache control for both the files in the build directory as well as your public directory if you need to. using pretty-cache-header under the hood so things like 1y or 30 days will work

    await app.register(remixFastify, {
      assetCacheControl: {},
      defaultCacheControl: {},
    });
    
  • a7fcb6d: fix cache control so that build assets are immutable and cached for 1 year instead of everything being cached for 1 hour

remix-fastify - @mcansh/[email protected]

Published by mcansh 6 months ago

Minor Changes

  • 597df2e: re-introduce plugin for easy configuration, we're still publicly exporting all the pieces, so you can still continue to configure your server as you do today.

    import { remixFastify } from "@mcansh/remix-fastify";
    import { installGlobals } from "@remix-run/node";
    import { fastify } from "fastify";
    
    installGlobals();
    
    let app = fastify();
    
    await app.register(remixFastify);
    
    let port = Number(process.env.PORT) || 3000;
    
    let address = await app.listen({ port, host: "0.0.0.0" });
    console.log(`✅ app ready: ${address}`);
    

    and if you need to configure loadContext, you can do so like this:

    import { remixFastify } from "@mcansh/remix-fastify";
    import { installGlobals } from "@remix-run/node";
    import { fastify } from "fastify";
    
    installGlobals();
    
    let app = fastify();
    
    await app.register(remixFastify, {
      getLoadContext(request, reply) {
        return {};
      },
    });
    
    let port = Number(process.env.PORT) || 3000;
    
    let address = await app.listen({ port, host: "0.0.0.0" });
    console.log(`✅ app ready: ${address}`);
    

Patch Changes

  • 90c6c61: changeset for #324

    bump dependencies to the latest versions

remix-fastify - @mcansh/[email protected]

Published by mcansh about 1 year ago

Major Changes

  • 40e8daa: remove plugin in favor of having server code in server. this allows live reload funcationally of remix dev to work

    you can find an example of the updated server code in /example/server.js

Minor Changes

  • 40e8daa: remove references to fetch polyfills
remix-fastify - @mcansh/[email protected]

Published by mcansh over 1 year ago

Minor Changes

  • b52d31b: use tsup for building/bundling, no user facing changes
remix-fastify - @mcansh/[email protected]

Published by mcansh over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/mcansh/remix-fastify/compare/@mcansh/[email protected]...@mcansh/[email protected]

remix-fastify -

Published by mcansh over 1 year ago

remix-fastify - 2.3.0

Published by mcansh over 1 year ago

Minor Changes

  • 9fd5b94: feat: Stream results to clients

    Instead of buffering the results and sending them down when they're all complete, instead we use a Passthrough stream to stream the chunks generated by Remix as we receive them.

remix-fastify - 2.3.1

Published by mcansh over 1 year ago

Patch Changes

  • a581f54: Fix Fetch Request creation for incoming URLs with double slashes
remix-fastify - 2.4.0

Published by mcansh over 1 year ago

Minor Changes

  • e2b4224: Make Remix root directory location configurable.
remix-fastify - 2.4.1

Published by mcansh over 1 year ago

Patch Changes

  • f3bdaa9: allow disabling purging of require cache

    useful when using the future.unstable_dev remix config flag

remix-fastify - 2.1.0

Published by mcansh almost 2 years ago

What's Changed

Full Changelog: https://github.com/mcansh/remix-fastify/compare/v2.0.1...2.1.0

remix-fastify - v2.0.1

Published by mcansh almost 2 years ago

What's Changed

Full Changelog: https://github.com/mcansh/remix-fastify/compare/1.12.0...v2.0.1

remix-fastify - 2.0.0

Published by mcansh almost 2 years ago

don't install this, it's 1.12.0

remix-fastify - 1.12.0

Published by mcansh about 2 years ago

What's Changed

Full Changelog: https://github.com/mcansh/remix-fastify/compare/1.11.5...1.12.0

remix-fastify - 0.0.0-experimental-8df4a70

Published by mcansh about 2 years ago

Changes

feat: read assetsBuildDirectory and publicPath from ServerBuild

remix-fastify - 1.11.5

Published by mcansh about 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/mcansh/remix-fastify/compare/1.11.4...1.11.5

remix-fastify - 1.11.4

Published by mcansh over 2 years ago

Changes

  • fix: emit declaration files: 872b1e856f693da6a05078c5db7a6e05408b2269

Full Changelog: https://github.com/mcansh/remix-fastify/compare/1.11.3...1.11.4

remix-fastify - 1.11.3

Published by mcansh over 2 years ago

remix-fastify - 1.11.2

Published by mcansh over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/mcansh/remix-fastify/compare/1.11.1...1.11.2

remix-fastify - 1.11.1

Published by mcansh over 2 years ago

What's Changed

Full Changelog: https://github.com/mcansh/remix-fastify/compare/1.11.0...1.11.1