Skip to content

Commit

Permalink
Better ESM support
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob committed Sep 17, 2024
1 parent 5cc9d77 commit 63c838b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ For example, React now has built in looks like `useActionState` to handle inline

We're able to fetch the user from our Postgres database in the root layout, but _not_ await the `Promise`. Instead, we forward the `Promise` to a React context provider, where we can "unwrap" it and awaited the streamed in data. This means we can have the best of both worlds: easy code to fetch data from our database (e.g. `getUser()`) and a React hook we can use in Client Components (e.g. `useUser()`).

Fun fact: the majority of the UI for this application was built with [v0](https://v0.dev) 🤯
Fun fact: the majority of the UI for this application was built with [v0](https://v0.dev) 🤯 [More details here](https://x.com/leeerob/status/1835777934361084316) if you want to learn about this repo.

</details>

## Features

- Marketing landing page (`/`) with animated Terminal element
- Pricing page (`/`) which connects to Stripe Checkout
- Pricing page (`/pricing`) which connects to Stripe Checkout
- Dashboard pages with CRUD operations on users/teams
- Basic RBAC with Owner and Member roles
- Subscription management with Stripe Customer Portal
Expand Down
4 changes: 3 additions & 1 deletion lib/db/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { client, db } from './drizzle';
dotenv.config();

async function main() {
await migrate(db, { migrationsFolder: path.join(__dirname, './migrations') });
await migrate(db, {
migrationsFolder: path.join(process.cwd(), './migrations'),
});
console.log(`Migrations complete`);
await client.end();
}
Expand Down
4 changes: 2 additions & 2 deletions postcss.config.js → postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
};

0 comments on commit 63c838b

Please sign in to comment.