Skip to content

Commit

Permalink
feat: adapter runs app init (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
jthegedus authored Jul 4, 2021
1 parent 991ca5f commit 9d281fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ SvelteKit is still in Beta and the Adapter API is in flux, this can result in th

| Adapter Version | SvelteKit Version |
| --------------- | ----------------- |
| `0.9.x` | `1.0.0-next.119` |
| `0.8.x` | `1.0.0-next.111` |
| `NA` | `1.0.0-next.110` |
| `NA` | `1.0.0-next.109` |
Expand Down
4 changes: 3 additions & 1 deletion src/files/handler.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import '@sveltejs/kit/install-fetch'; // eslint-disable-line import/no-unassigned-import

// TODO: hardcoding the relative location makes this brittle
import {render} from '../output/server/app.js';
import {init, render} from '../output/server/app.js';

init();

/**
* Firebase Cloud Function handler for SvelteKit
Expand Down

0 comments on commit 9d281fb

Please sign in to comment.