Skip to content

Commit

Permalink
update create-app demo to @xarc/fastify-server 3.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Feb 23, 2021
1 parent 962dd22 commit e86e769
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/xarc-create-app/template/_package.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = (base, merge) => {
dependencies: {
"@babel/runtime": "^7.12.5",
"@xarc/app": "^8.2.0", // version will come from ../package.json
"@xarc/fastify-server": "^3.2.2",
"@xarc/fastify-server": "^3.2.3",
"@xarc/react": "^0.1.0", // version will come from ../package.json
"@xarc/react-query": "^0.1.1", // version will come from ../package.json
"@xarc/react-redux": "^0.1.0" // version will come from ../package.json
Expand Down
6 changes: 1 addition & 5 deletions packages/xarc-create-app/template/src/server/config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
ConnectionConfig,
PluginsConfig,
ElectrodeServerConfig
} from "@xarc/fastify-server/lib/types";
import { ConnectionConfig, PluginsConfig, ElectrodeServerConfig } from "@xarc/fastify-server";

//
// specify connection info for fastify server
Expand Down
4 changes: 2 additions & 2 deletions packages/xarc-create-app/template/src/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { loadRuntimeSupport } from "@xarc/app";
import fastifyServer from "@xarc/fastify-server";
import { electrodeServer } from "@xarc/fastify-server";
import { config } from "./config";

/**
Expand All @@ -14,7 +14,7 @@ export async function start() {
}
});

const server = await fastifyServer(config);
const server = await electrodeServer(config);

// it's important that the routes setup is import *after* runtime support is loaded
// else isomorphic assets during development may not work properly
Expand Down
2 changes: 1 addition & 1 deletion samples/create-app-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@babel/runtime": "^7.12.5",
"@xarc/app": "^9.0.3",
"@xarc/fastify-server": "^3.2.2",
"@xarc/fastify-server": "^3.2.3",
"@xarc/react": "^0.1.7",
"@xarc/react-query": "^0.1.3",
"@xarc/react-redux": "^0.1.6"
Expand Down
6 changes: 1 addition & 5 deletions samples/create-app-demo/src/server/config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
ConnectionConfig,
PluginsConfig,
ElectrodeServerConfig
} from "@xarc/fastify-server/lib/types";
import { ConnectionConfig, PluginsConfig, ElectrodeServerConfig } from "@xarc/fastify-server";

//
// specify connection info for fastify server
Expand Down
4 changes: 2 additions & 2 deletions samples/create-app-demo/src/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { loadRuntimeSupport } from "@xarc/app";
import fastifyServer from "@xarc/fastify-server";
import { electrodeServer } from "@xarc/fastify-server";
import { config } from "./config";

/**
Expand All @@ -14,7 +14,7 @@ export async function start() {
}
});

const server = await fastifyServer(config);
const server = await electrodeServer(config);

// it's important that the routes setup is import *after* runtime support is loaded
// else isomorphic assets during development may not work properly
Expand Down

0 comments on commit e86e769

Please sign in to comment.