@ -5,7 +5,7 @@ import Users from "./collections/Users";
|
||||
import Media from "./collections/Media";
|
||||
|
||||
export default buildConfig({
|
||||
serverURL: "http://localhost:3001",
|
||||
serverURL: process.env.PAYLOAD_URL,
|
||||
admin: {
|
||||
user: Users.slug,
|
||||
},
|
||||
|
@ -21,4 +21,4 @@ payload.init({
|
||||
|
||||
// Add your own express routes here
|
||||
|
||||
app.listen(3001);
|
||||
app.listen(process.env.PAYLOAD_PORT);
|
||||
|
Reference in New Issue
Block a user