@keystatic/templates-nextjs 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @keystatic/templates-nextjs
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 12905059: Moved API routes from pages to app directory.
8
+
9
+ ## 0.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [0327f443]
14
+ - @keystatic/next@0.0.11
15
+
3
16
  ## 0.0.2
4
17
 
5
18
  ### Patch Changes
@@ -0,0 +1,6 @@
1
+ import { makeRouteHandler } from '@keystatic/next/route-handler';
2
+ import keystaticConfig from '../../../../keystatic.config';
3
+
4
+ export const { POST, GET } = makeRouteHandler({
5
+ config: keystaticConfig,
6
+ });
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@keystatic/templates-nextjs",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "@keystatic/core": "^0.0.107",
7
- "@keystatic/next": "^0.0.10",
7
+ "@keystatic/next": "^0.0.11",
8
8
  "next": "^13.4.4",
9
9
  "react": "^18.2.0",
10
10
  "react-dom": "^18.2.0"
@@ -1,6 +0,0 @@
1
- import config from '../../../keystatic.config';
2
- import { makeAPIRouteHandler } from '@keystatic/next/api';
3
-
4
- export default makeAPIRouteHandler({
5
- config,
6
- });