Skip to content

Commit 55e442e

Browse files
Update to support demo site and playground
1 parent a019920 commit 55e442e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/server/index.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ export function makeServer({ environment = 'development' } = {}) {
2424

2525
// -------------------------------------------------- Routes //
2626
routes() {
27-
this.namespace = 'vuetify-inline-fields/playground/api';
27+
let namespace = 'vuetify-inline-fields/api';
28+
29+
if (this.environment === 'playground') {
30+
namespace = 'vuetify-inline-fields/playground/api';
31+
}
32+
33+
this.namespace = namespace;
34+
2835

2936
// ------------------------- Client Side //
3037
this.get('users', (schema) => {
@@ -87,6 +94,9 @@ export function makeServer({ environment = 'development' } = {}) {
8794

8895
return response;
8996
});
97+
98+
this.passthrough('https://cdn.jsdelivr.net/gh/PrismJS/[email protected]/*');
99+
this.passthrough('https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/*');
90100
},
91101

92102
// -------------------------------------------------- Seeds //

0 commit comments

Comments
 (0)