mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
18 lines
480 B
JavaScript
18 lines
480 B
JavaScript
import createServer from './server'
|
|
import ActivityPub from './activitypub/ActivityPub'
|
|
|
|
const serverConfig = {
|
|
port: process.env.GRAPHQL_PORT || 4000
|
|
// cors: {
|
|
// credentials: true,
|
|
// origin: [process.env.CLIENT_URI] // your frontend url.
|
|
// }
|
|
}
|
|
|
|
const server = createServer()
|
|
server.start(serverConfig, options => {
|
|
/* eslint-disable-next-line no-console */
|
|
console.log(`GraphQLServer ready at ${process.env.GRAPHQL_URI} 🚀`)
|
|
ActivityPub.init(server)
|
|
})
|